mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
Update Dict.walk to match List.walk
This commit is contained in:
parent
91165e1230
commit
71a678c092
3 changed files with 5 additions and 5 deletions
|
@ -1090,17 +1090,17 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
Box::new(dict_type(flex(TVAR1), flex(TVAR2))),
|
||||
);
|
||||
|
||||
// Dict.walk : Dict k v, (k, v, accum -> accum), accum -> accum
|
||||
// Dict.walk : Dict k v, state, (state, k, v -> state) -> state
|
||||
add_top_level_function_type!(
|
||||
Symbol::DICT_WALK,
|
||||
vec![
|
||||
dict_type(flex(TVAR1), flex(TVAR2)),
|
||||
flex(TVAR3),
|
||||
closure(
|
||||
vec![flex(TVAR1), flex(TVAR2), flex(TVAR3)],
|
||||
vec![flex(TVAR3), flex(TVAR1), flex(TVAR2)],
|
||||
TVAR4,
|
||||
Box::new(flex(TVAR3)),
|
||||
),
|
||||
flex(TVAR3),
|
||||
],
|
||||
Box::new(flex(TVAR3)),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue