fold<T> abstract method

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

Fold Left and Right into the value of one type

Implementation

T fold<T>(T Function(L left) fnL, T Function(R right) fnR);