Tuple2Bifoldable

Bifoldable instance for Tuple2; folds the first component before the second.

Inheritors

Functions

Link copied to clipboard
open override fun <A, B, C> bifoldLeft(initial: C, f: (C, A) -> C, g: (C, B) -> C, v: K2<Tuple2.T, A, B>): C

Left-associative fold, using f for first-argument values and g for second-argument values.

Link copied to clipboard
open fun <A, B, M : Monoid<*, M>> bifoldMap(type: Class<M>, f: (A) -> M, g: (B) -> M, v: K2<Tuple2.T, A, B>): M

Maps every value to the monoid M with f or g and combines the results.

Link copied to clipboard
open override fun <A, B, C> bifoldRight(initial: C, f: (A, C) -> C, g: (B, C) -> C, v: K2<Tuple2.T, A, B>): C

Right-associative fold, using f for first-argument values and g for second-argument values.