arrow-core / arrow.core.extensions.listk.functor / arrow.Kind / map
@JvmName("map") fun <A, B> Kind<ForListK, A>.~~map~~(arg1: (A) -> B): ListK<B>
Deprecated: @extension projected functions are deprecated
Transform the F wrapped value A into B preserving the F structure Kind<F, A> -> Kind<F, B>
import arrow.core.*
import arrow.core.extensions.listk.functor.*
import arrow.core.*
import arrow.core.extensions.listk.applicative.just
fun main(args: Array<String>) {
val result =
//sampleStart
"Hello".just().map({ "$it World" })
//sampleEnd
println(result)
}
Do you like Arrow?
✖