arrow-fx / arrow.fx / Race4 / fold
inline fun <E> fold(ifA: (A) -> E, ifB: (B) -> E, ifC: (C) -> E, ifD: (D) -> E): E
Do you like Arrow?