ap<C> method

  1. @override
IOOption<C> ap<C>(
  1. covariant IOOption<C Function(R r)> a
)
override

Apply the function contained inside a to change the value on the Some from type R to a value of type C.

Implementation

@override
IOOption<C> ap<C>(covariant IOOption<C Function(R r)> a) =>
    a.flatMap((f) => flatMap((v) => pure(f(v))));