arrow-core-data / arrow.core / kotlin.collections.Iterable / split
fun <A>
Iterable
<A>.split():
Pair
<
List
<A>, A>?
attempt to split the computation, giving access to the first result.
import arrow.core.*
fun main(args: Array<String>) {
//sampleStart
val result =
listOf("A", "B", "C").split()
//sampleEnd
println(result)
}
Do you like Arrow?
✖