mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
codegen for walkRight
This commit is contained in:
parent
5d0ec57461
commit
25cd0a2c02
7 changed files with 188 additions and 15 deletions
|
@ -1711,7 +1711,22 @@ fn run_low_level<'a, 'ctx, 'env>(
|
|||
// List.walkRight : List elem, (elem -> accum -> accum), accum -> accum
|
||||
debug_assert_eq!(args.len(), 3);
|
||||
|
||||
list_walk_right(env)
|
||||
let (list, list_layout) = load_symbol_and_layout(env, scope, &args[0]);
|
||||
|
||||
let (func, func_layout) = load_symbol_and_layout(env, scope, &args[1]);
|
||||
|
||||
let (default, default_layout) = load_symbol_and_layout(env, scope, &args[2]);
|
||||
|
||||
list_walk_right(
|
||||
env,
|
||||
parent,
|
||||
list,
|
||||
list_layout,
|
||||
func,
|
||||
func_layout,
|
||||
default,
|
||||
default_layout,
|
||||
)
|
||||
}
|
||||
ListAppend => {
|
||||
// List.append : List elem, elem -> List elem
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue