Tuple2Ops<A, B> extension

on
  • (A, B)

Properties

last → B

Available on (A, B), provided by the Tuple2Ops extension

Returns the last item of this tuple.
no setter

Methods

append<C>(C $3) → (A, B, C)

Available on (A, B), provided by the Tuple2Ops extension

Returns a new tuple with $3 appended to the end.
bimap<C, D>(Function1<A, C> fa, Function1<B, D> fb) → (C, D)

Available on (A, B), provided by the Tuple2Ops extension

Applies each function to the respective item of this tuple.
call<C>(Function2<A, B, C> f) → C

Available on (A, B), provided by the Tuple2Ops extension

Syntax to allow calling a tuple as a function and automatically destructure the elements.
copy({A? $1, B? $2}) → (A, B)

Available on (A, B), provided by the Tuple2Ops extension

Returns a copy of this tuple, where any given value(s) override this tuples value(s).
prepend<C>(C $3) → (C, A, B)

Available on (A, B), provided by the Tuple2Ops extension

Returns a new tuple with $3 prepended at the beginning.