Commits

Stepan Koltsov committed 767c72c

another shortcut

  • Participants
  • Parent commits a574c8f

Comments (0)

Files changed (1)

File src/main/java/ru/yandex/bolts/collection/Tuple2List.java

         return map(mapper.<A, B, W>uncheckedCast().asFunction());
     }
 
+    public <C, D> Tuple2List<C, D> toTuple2List(Function2<? super A, ? super B, Tuple2<C, D>> f) {
+        return super.toTuple2List(f.<A, B, Tuple2<C, D>>uncheckedCast().asFunction());
+    }
+
     public void forEach(Function2V<A, B> f) {
         super.forEach(f.asFunction1V());
     }