unit

fun <A, B> Either<A, B>.unit(): Either<A, Unit>(source)

Map right to Unit. This restores .void() which was deprecated by Arrow.


fun <A> Option<A>.unit(): Option<Unit>(source)

Map some to Unit. This restores .void() which was deprecated by Arrow.


Map success to Unit, included for consistency with Either.