Helper utilities for result types.
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.