arrow-core / arrow.core.extensions.list.functor / kotlin.collections.List / map
@JvmName("map") fun <A, B> List<A>.~~map~~(arg1: (A) -> B): List<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?
✖