map

abstract fun <B> map(transform: suspend (A) -> B): Effect<B>

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

Return

A new Effect containing the transformed value.

Parameters

transform

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