traverse
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.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