unite Validated
Deprecated
Use mapNotNull and orNull instead.
Replace with
import arrow.core.orNull
Content copied to clipboard
mapNotNull { it.orNull() }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 flatMap
Replace with
import arrow.core.Option
import arrow.core.Some
import arrow.core.None
Content copied to clipboard
flatMap<B> { validated -> validated.fold<Option<B>>({ None }, ::Some) }Content copied to clipboard