mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
working Set.walk
This commit is contained in:
parent
d25b1dc549
commit
ca78439756
8 changed files with 471 additions and 576 deletions
|
@ -1809,12 +1809,7 @@ fn list_keep_errs() {
|
|||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
mapErr = \result, f ->
|
||||
when result is
|
||||
Err e -> Err ( f e )
|
||||
Ok v -> Ok v
|
||||
|
||||
List.keepErrs [0,1,2] (\x -> x % 0 |> mapErr (\_ -> 32))
|
||||
List.keepErrs [0,1,2] (\x -> x % 0 |> Result.mapErr (\_ -> 32))
|
||||
"#
|
||||
),
|
||||
&[32, 32, 32],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue