mapWithIndex<B> method

Either<L, B> mapWithIndex<B>(
  1. B f(
    1. int i,
    2. R r
    )
)

Implementation

Either<L, B> mapWithIndex<B>(B Function(int i, R r) f) =>
    map((R r) => f(0, r));