mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
Merge branch 'trunk' of github.com:rtfeldman/roc into str-split
This commit is contained in:
commit
d41e940b7f
108 changed files with 3509 additions and 863 deletions
|
@ -674,6 +674,15 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
)
|
||||
});
|
||||
|
||||
// contains : Attr * (List a)
|
||||
// , a
|
||||
// -> Attr * Bool
|
||||
add_type(Symbol::LIST_CONTAINS, {
|
||||
let_tvars! { a, star1, star2 };
|
||||
|
||||
unique_function(vec![list_type(star1, a), flex(a)], bool_type(star2))
|
||||
});
|
||||
|
||||
// join : Attr * (List (Attr * (List a)))
|
||||
// -> Attr * (List a)
|
||||
add_type(Symbol::LIST_JOIN, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue