mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
Swap List.mapWithIndex arg1 args order to put the element first
This commit is contained in:
parent
92e0f8714f
commit
f47dbb5171
7 changed files with 8 additions and 8 deletions
|
@ -2363,7 +2363,7 @@ fn list_keep_errs() {
|
|||
#[cfg(any(feature = "gen-llvm"))]
|
||||
fn list_map_with_index() {
|
||||
assert_evals_to!(
|
||||
"List.mapWithIndex [0,0,0] (\\index, x -> Num.intCast index + x)",
|
||||
"List.mapWithIndex [0,0,0] (\\x, index -> Num.intCast index + x)",
|
||||
RocList::from_slice(&[0, 1, 2]),
|
||||
RocList<i64>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue