3 ms·
> the "flattening" above seems unnecessary but I could not avoid it since "Result#map" wraps the Result in another Result (I could not find a flat_map). In Gle
by widdershins 2y ago
> the "flattening" above seems unnecessary but I could not avoid it since "Result#map" wraps the Result in another Result (I could not find a flat_map).
In Gleam, this is called `result.try`[1]
[1] https://hexdocs.pm/gleam_stdlib/gleam/result.html#try https://hexdocs.pm/gleam_stdlib/gleam/result.html#try