foldLeftFirst<C> method

C foldLeftFirst<C>(
  1. C b,
  2. C f(
    1. C b,
    2. T1 a
    )
)

Return value of type C by calling f with b and the first value of the Tuple2.

Same as foldRightFirst.

Implementation

C foldLeftFirst<C>(C b, C Function(C b, T1 a) f) =>
    foldMapFirst<Endo<C>>(dualEndoMonoid(), (a) => (C b) => f(b, a))(b);