map<B> method

  1. @override
IO<B> map<B>(
  1. B f(
    1. A a
    )
)
override

Change the value of type A to a value of type B using function f.

Implementation

@override
IO<B> map<B>(B Function(A a) f) => ap(pure(f));