glemplate/result

Helper utilities for result types.

Functions

pub fn fold(items: List(a), init: b, folder: fn(b, a) ->
    Result(b, c)) -> Result(b, c)

Fold over a list, stopping at the first error encountered.

Search Document