foldLeft<C> method

  1. @override
C foldLeft<C>(
  1. C b,
  2. C f(
    1. C b,
    2. T2 a
    )
)
override

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

Same as foldRight.

Implementation

@override
C foldLeft<C>(C b, C Function(C b, T2 a) f) =>
    foldMap<Endo<C>>(dualEndoMonoid(), (a) => (C b) => f(b, a))(b);