fold<R extends Object> method

R fold<R extends Object>(
  1. Mapper<Json, R> t1Mapper,
  2. Mapper<String, R> t2Mapper,
  3. Mapper<Unit, R> t3Mapper
)
inherited

Folds all values into a non nullable one

Implementation

R fold<R extends Object>(
    Mapper<T1, R> t1Mapper, Mapper<T2, R> t2Mapper, Mapper<T3, R> t3Mapper) {
  return _fold(t1Mapper, _t1) ??
      _fold(t2Mapper, _t2) ??
      _fold(t3Mapper, _t3)!;
}