arrow-fx / arrow.fx / IO / just

just

fun <A> just(a: A): IO<A>

Just wrap a pure value A into IO.

import arrow.fx.IO

fun main(args: Array<String>) {
  //sampleStart
  val result = IO.just("Hello from just!")
  //sampleEnd
  println(result.unsafeRunSync())
}

Do you like Arrow?

Arrow Org
<