//arrow-core/arrow.core/separateValidated

separateValidated

common fun <A, B> Iterable<Validated<A, B».separateValidated(): Pair<List<A>, List<B»

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.

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

common fun <A, B> Sequence<Validated<A, B».separateValidated(): Pair<Sequence<A>, Sequence<B»

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.

Do you like Arrow?

Arrow Org
<