mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
Reorder args for List.walk and friends
This commit is contained in:
parent
b4e4ae2ff3
commit
1abebb7713
2 changed files with 8 additions and 8 deletions
|
@ -2050,8 +2050,8 @@ fn list_sum(symbol: Symbol, var_store: &mut VarStore) -> Def {
|
|||
op: LowLevel::ListWalk,
|
||||
args: vec![
|
||||
(list_var, Var(Symbol::ARG_1)),
|
||||
(closure_var, list_sum_add(num_var, var_store)),
|
||||
(num_var, num(var_store.fresh(), 0)),
|
||||
(closure_var, list_sum_add(num_var, var_store)),
|
||||
],
|
||||
ret_var,
|
||||
};
|
||||
|
@ -2092,8 +2092,8 @@ fn list_product(symbol: Symbol, var_store: &mut VarStore) -> Def {
|
|||
op: LowLevel::ListWalk,
|
||||
args: vec![
|
||||
(list_var, Var(Symbol::ARG_1)),
|
||||
(closure_var, list_product_mul(num_var, var_store)),
|
||||
(num_var, num(var_store.fresh(), 1)),
|
||||
(closure_var, list_product_mul(num_var, var_store)),
|
||||
],
|
||||
ret_var,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue