handleLeftAndFilter

inline fun <A, B> Iterable<Either<A, B>>.handleLeftAndFilter(block: (Either.Left<A>) -> Unit): List<B>

Handle all Either.Left with block and return only the values of Either.Right.

Receiver

the list of Either to be handled

Return

the list of values of the Either.Right

Parameters

block

the handler in case of an Either.Left