onFirst

inline fun <T1, T2, E : Either<T1, T2>> E.onFirst(block: (T1) -> Unit): E(source)

Will call block in case when this is EitherFirst