fold<T> method

  1. @override
T fold<T>(
  1. T fnL(
    1. L left
    ),
  2. T fnR(
    1. R right
    )
)
override

Fold Left and Right into the value of one type

Implementation

@override
T fold<T>(T Function(L left) fnL, T Function(R right) fnR) {
  return fnR(value);
}