Swap List.mapWithIndex arg1 args order to put the element first

This commit is contained in:
Jan Van Bruggen 2022-02-11 15:58:50 -07:00
parent 92e0f8714f
commit f47dbb5171
No known key found for this signature in database
GPG key ID: F4B9828637D6D81B
7 changed files with 8 additions and 8 deletions

View file

@ -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>
);