rightIfNotNull

inline fun <L, R> R?.rightIfNotNull(ifNull: () -> L): Either<L, R>

Wraps R into a Either.Right if it is not null, otherwise returns Either.Left.

Important: This is a Public Preview API. It may be changed or removed at any time.