fold

fun fold(fnL: (L) -> Any, fnR: (R) -> Any): Any

Applies fnL if this is a Left or fnR if this is a Right.

See also