first<A1> method

  1. @override
Either<A1, b> first<A1>(
  1. A1 fn(
    1. a
    )
)
inherited

Map the left A value into an A1 with the fn mapper, while keeping the right value untouched.

Implementation

@override
Either<A1, b> first<A1>(A1 Function(a) fn) =>
    bimap<A1, b>(a: fn, b: _identity);