fold<T> abstract method

T fold<T>(
  1. EitherMapper<T, L> leftMapper,
  2. EitherMapper<T, R> rightMapper
)

Folds either the left or the right side of this disjunction.

Implementation

T fold<T>(EitherMapper<T, L> leftMapper, EitherMapper<T, R> rightMapper);