arrow-core-data / arrow.core / Option / just
fun <A> ~~just~~(a: A):
Option
<A>
Deprecated: just is deprecated, and will be removed in 0.13.0. Please use Some instead.
Lifts a pure A value to Option
import arrow.core.Option
fun main(args: Array<String>) {
//sampleStart
val result: Option<Int> = Option.just(1)
//sampleEnd
println(result)
}
Do you like Arrow?
✖