arrow-core-data / arrow.core / separateValidated

separateValidated

fun <A, B> Option<Validated<A, B>>.separateValidated(): Pair<Option<A>, Option<B>>

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.

Do you like Arrow?

Arrow Org
<