TupleOps<T, S> extension

on
  • $<T, S>

Methods

bimap<P, Q>(P f(T), Q g(S)) $<P, Q>
apply function f on left value and g on right value and return tuple.
mapN<P>(P f(T, S)) → P
swap() $<S, T>
returns new tuple swapping left one with right one.