If Either fmap
is
(a -> b) -> p a a -> p a b
which stops mapping once a Left
is returned.
What's name or type signature for a function which doesn't stop until it gets a Right
result.
I suspect a bifunctor, but I really need it spelled out - don't quite get the subtlety of the logic of these things yet.
Perhaps some sort of fold
fits also...