DoEither<L, R> extension

on

Methods

doOnLeft(void block(L v)) Either<L, R>

Available on Either<L, R>, provided by the DoEither extension

Performs a side-effect by running block function if the value is left and returns the same Either.
doOnRight(void block(R v)) Either<L, R>

Available on Either<L, R>, provided by the DoEither extension

Performs a side-effect by running block function if the value is right and returns the same Either.