map

fun <A, B> map(effect: Effect<A>, f: (A) -> B): Effect<B>

Map effect of type A to Effect of B using f.