# result/map
Lift a pure function into a Result.
## Syntax
[result/map $result $f]
`$f` is applied to the inner value of an Ok; an Err propagates unchanged.
## Examples
[result/map [ok 5] {|x| ($x * 2)}] # Ok(10) [result/map [err "bad"] {|x| ($x * 2)}] # Err("bad") # In a pipeline: $pkg |> [result/load] |> [result/map parse-config]
## Returns
Result — `Ok(f(v))` when Ok, or the original Err unchanged.
## See Also
`and-then`, `result/traverse`, `result/sequence`, `unwrap`