Closed vrom911 closed 3 years ago
As a separate function, I often want to map over some structure with a Maybe-like function and return a Slist. For example, sometimes I want to have the following function:
Maybe
Slist
slistWith :: (a -> Maybe b) -> [a] -> Slist b
So I get a proper Slist in a single traversal.
As a separate function, I often want to map over some structure with a
Maybe
-like function and return aSlist
. For example, sometimes I want to have the following function:So I get a proper
Slist
in a single traversal.