Left package:foundation
Extracts from a list of
Either all the
Left elements.
All the
Left elements are extracted in order.
Examples
Basic usage:
>>> let list = [ Left "foo", Right 3, Left "bar", Right 7, Left "baz" ]
>>> lefts list
["foo","bar","baz"]
Provide leftover input to be consumed by the next component in the
current monadic binding.