map<A, B> function

IO<B> Function(IO<A> ) map<A, B>(
  1. B f(
    1. A
    )
)

Implementation

IO<B> Function(IO<A>) map<A, B>(
  B Function(A) f,
) =>
    (io) => () => f(io());