fold

inline fun <C> fold(fa: (A) -> C, fb: (B) -> C, fab: (A, B) -> C): C(source)

Applies fa if this is a Left, fb if this is a Right or fab if this is a Both

Return

the results of applying the function

Parameters

fa

the function to apply if this is a Left

fb

the function to apply if this is a Right

fab

the function to apply if this is a Both