Result monad for Elixir inspired by Rust Result type. ... map(fn v -> v + 1 end) # err(:not_found) ok(1) |> map_err(fn reason -> {:failed, reason} end) ...
確定! 回上一頁