예제 #1
0
  /**
   * Lazily Map 2nd element and memoise the result
   *
   * @param fn Map function
   * @return
   */
  default <T> PTuple8<T1, T, T3, T4, T5, T6, T7, T8> lazyMap2(Function<T2, T> fn) {
    if (arity() != 8) return (PTuple8) PTuple7.super.lazyMap2(fn);

    return new LazyMap2PTuple8(fn, (PTuple8) this);
  }