sequence
fun <E, A> NonEmptyList<Validated<E, A>>.sequence(semigroup: Semigroup<E>): Validated<E, NonEmptyList<A>>
Deprecated
Prefer Kotlin nullable syntax inside either DSL, or replace with explicit fold
Replace with
import arrow.core.right
Content copied to clipboard
fold({ emptyList() }, { iterable -> iterable.map { it.right() } })
Content copied to clipboard
Deprecated
Prefer Kotlin nullable syntax inside either DSL, or replace with explicit fold
Replace with
import arrow.core.toOption
import arrow.core.right
import arrow.core.left
Content copied to clipboard
orNull()?.orNull()?.right().toOption()
Content copied to clipboard
Deprecated
Prefer Kotlin nullable syntax
Replace with
import arrow.core.right
Content copied to clipboard
orNull()?.right()
Content copied to clipboard