Simple, extensible Folds.
Starting from the left, fold each element of the array onto 'b'.
Starting from the right, fold each element of the array onto b.
Starting from the right, fold each element of the list onto 'b'.
If the input is Just, fold over it.
merge (maybe list) [ 2, 3 ] (Just 1) -- [ 1, 2, 3, 4 ]
merge (maybe string) "hello" Nothing -- "hello"
Fold 'e' onto 'b' if Result e a is Err.
Starting from the left, fold each character in the string onto b.
Starting from the right, fold each character in the string onto b.
Uses an input
ato accumulate overb.