ap<V> method

Either<L, V> ap<V>(
  1. Either<L, V Function(R r)> f
)

Implementation

Either<L, V> ap<V>(
  Either<L, V Function(R r)> f,
) =>
    f.flatMap(
      (f) => flatMap(
        (v) => Right(f(v)),
      ),
    );