separate Validated
Separate the inner Validated values into the Validated.Invalid and Validated.Valid.
Receiver
Iterable of Validated
Return
a tuple containing List with Validated.Invalid and another List with its Validated.Valid values.
Separate the inner Validated values into the Validated.Invalid and Validated.Valid.
Receiver
Iterable of Validated
Return
a tuple containing Sequence with Validated.Invalid and another Sequence with its Validated.Valid values.
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.None
import arrow.core.Some
import arrow.core.Option
fold({ None to None }) { validated -> validated.fold<Pair<Option<A>, Option<B>>>({ Some(it) to None }, { None to Some(it) }) }Separate the inner Validated value into the Validated.Invalid and Validated.Valid.
Receiver
Option of Either
Return
a tuple containing Option of Validated.Invalid and another Option of its Validated.Valid value.