fold<Z> abstract method
Z
fold<Z>(
- Z onLeft(
- L
- Z onRight(
- R
Applies onLeft
if this is a Left or onRight
if this is a Right
Implementation
Z fold<Z>(Z Function(L) onLeft, Z Function(R) onRight);