Add fold, swap and map methods to Pair
Issue #73
new
The Pair
type is missing many of the functional transformation methods that you can find on the Either
class, such as swap
, leftMap
, rightMap
, fold
and bimap
.
These can all be easily added to make Pair
more useful and functional.