foldLeft<C> method

  1. @override
C foldLeft<C>(
  1. C b,
  2. C f(
    1. C acc,
    2. R b
    )
)
override

Return the result of f called with b and the value of Right. If this Either is Left, return b.

Implementation

@override
C foldLeft<C>(C b, C Function(C acc, R b) f) =>
    foldMap<Endo<C>>(dualEndoMonoid(), (b) => (C c) => f(c, b))(b);