mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
243 B
243 B
META
description=Try.map_err with Ok and Err variants
type=repl
SOURCE
» Try.map_err(Try.Err(50), |err_code| err_code + 1)
» Try.map_err(Try.Ok("hello"), |_| "world")
OUTPUT
Err(51)
Ok("hello")
PROBLEMS
NIL