fold

fun <C> fold(ifLeft: (E) -> C, ifRight: (A) -> C): C