bind<B1> method

  1. @override
Either<a, B1> bind<B1>(
  1. Either<a, B1> fn(
    1. b
    )
)
inherited

Flat map the right value B into an Either<A, B1>, while keeping the left value untouched.

Implementation

@override
Either<a, B1> bind<B1>(Either<a, B1> Function(b) fn) => _self.visit(
      left: (v) => Left<a, B1>(v),
      right: _notNull(fn),
    );