map

open override fun <B> map(transform: suspend (A) -> B): IO<B>

Transforms the result of this IO using the provided transform function.

Return

A new IO containing the transformed value.

Parameters

transform

The function to transform the value of type A into a value of type B.