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
Deprecated
Prefer using the Option DSL, or explicit fold or when
Replace with
import arrow.core.Some
Content copied to clipboard
fold({ emptyList() }) { a -> fa(a).map(::Some) }Content copied to clipboard
Deprecated
This API is niche and will be removed in the future. If this method is crucial for you, please let us know on the Arrow Github. Thanks! https://github.com/arrow-kt/arrow/issues Prefer using the Option DSL, or explicit fold or when
Replace with
import arrow.core.Either.Right
import arrow.core.None
import arrow.core.Some
Content copied to clipboard
fold({ Right(None) }) { a -> fa(a).map(::Some) }Content copied to clipboard
Deprecated
This API is niche and will be removed in the future. If this method is crucial for you, please let us know on the Arrow Github. Thanks! https://github.com/arrow-kt/arrow/issues Prefer using the Option DSL, or explicit fold or when
Replace with
import arrow.core.Valid
import arrow.core.None
import arrow.core.Some
Content copied to clipboard
fold({ Valid(None) }) { a -> fa(a).map(::Some) }Content copied to clipboard