# result/traverse
Map a Result-returning function over a collection, short-circuiting on the first Err.
## Syntax
[result/traverse $coll $f]
`$f` maps each item to a Result.
## Examples
[result/traverse @{ 1 2 3 } {|n| [ok ($n * 2)]}] # Ok(@{ 2 4 6 })
[result/traverse @{ 1 -1 2 } {|n|
if ($n < 0) { [err "negative"] } { [ok $n] }
}] # Err("negative") (stops at first Err)
## Returns
Result — `Ok([values])` if every call succeeded, or the first Err.
## See Also
`result/sequence`, `result/map`, `and-then`, `ok`