A
- The first input Iterable element typeB
- The second input Iterable element typeC
- The output Iterable element typepublic final class ZipWith<A,B,C> extends Object implements Fn3<Fn2<? super A,? super B,? extends C>,Iterable<A>,Iterable<B>,Iterable<C>>
Iterable
s by applying a zipping function to the successive elements of each
Iterable
until one of them runs out of elements. Returns an Iterable
containing the
results.Zip
Modifier and Type | Method and Description |
---|---|
Iterable<C> |
checkedApply(Fn2<? super A,? super B,? extends C> zipper,
Iterable<A> as,
Iterable<B> bs) |
static <A,B,C> ZipWith<A,B,C> |
zipWith() |
static <A,B,C> Fn2<Iterable<A>,Iterable<B>,Iterable<C>> |
zipWith(Fn2<? super A,? super B,? extends C> zipper) |
static <A,B,C> Fn1<Iterable<B>,Iterable<C>> |
zipWith(Fn2<? super A,? super B,? extends C> zipper,
Iterable<A> as) |
static <A,B,C> Iterable<C> |
zipWith(Fn2<? super A,? super B,? extends C> zipper,
Iterable<A> as,
Iterable<B> bs) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, apply, apply, checkedApply, compose, contraMap, diMapL, discardR, flip, fn3, fn3, fn3, uncurry, widen
checkedApply, curried, curry, fn2, fromBiFunction, toBiFunction
public Iterable<C> checkedApply(Fn2<? super A,? super B,? extends C> zipper, Iterable<A> as, Iterable<B> bs)
public static <A,B,C> ZipWith<A,B,C> zipWith()
public static <A,B,C> Fn2<Iterable<A>,Iterable<B>,Iterable<C>> zipWith(Fn2<? super A,? super B,? extends C> zipper)
public static <A,B,C> Fn1<Iterable<B>,Iterable<C>> zipWith(Fn2<? super A,? super B,? extends C> zipper, Iterable<A> as)