mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
Merge remote-tracking branch 'origin/trunk' into str-fromUtf8
This commit is contained in:
commit
57b78dde06
156 changed files with 19265 additions and 10809 deletions
|
@ -906,6 +906,13 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
|
||||
// Dict module
|
||||
|
||||
// : Attr * (Dict k v) -> Attr * Nat
|
||||
add_type(Symbol::DICT_LEN, {
|
||||
let_tvars! { star1, k , v, star2, int };
|
||||
|
||||
unique_function(vec![dict_type(star1, k, v)], int_type(star2, int))
|
||||
});
|
||||
|
||||
// empty : Attr * (Dict k v)
|
||||
add_type(Symbol::DICT_EMPTY, {
|
||||
let_tvars! { star, k , v };
|
||||
|
@ -1046,13 +1053,13 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
// diff : Attr * (Set * a)
|
||||
// , Attr * (Set * a)
|
||||
// -> Attr * (Set * a)
|
||||
add_type(Symbol::SET_DIFF, set_combine);
|
||||
add_type(Symbol::SET_DIFFERENCE, set_combine);
|
||||
|
||||
// foldl : Attr (* | u) (Set (Attr u a))
|
||||
// , Attr Shared (Attr u a -> b -> b)
|
||||
// , b
|
||||
// -> b
|
||||
add_type(Symbol::SET_FOLDL, {
|
||||
add_type(Symbol::SET_WALK, {
|
||||
let_tvars! { star, u, a, b, closure };
|
||||
|
||||
unique_function(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue