separateValidated

fun <A, B> Iterable<Validated<A, B>>.separateValidated(): <ERROR CLASS><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.


fun <A, B> Option<Validated<A, B>>.separateValidated(): <ERROR CLASS><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.


fun <A, B> <ERROR CLASS><Validated<A, B>>.separateValidated(): <ERROR CLASS><<ERROR CLASS><A>, <ERROR CLASS><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.