3 ms·
Or thanks to elixir's pipeline operator: err |> thunk() |> unlift() |> lift() |> thunk() Which is already more readable. And I choosed the R
by linkdd 5y ago
Or thanks to elixir's pipeline operator:
err
|> thunk()
|> unlift()
|> lift()
|> thunk()
Which is already more readable. And I choosed the Rust terminology for a reason, I think and_then/or_else is way clearer than fmap/bind.
But I agree, I would love for Elixir to have a builtin Result type.