Package org.dmfs.jems2.iterable
Class Paired<Left,Right>
- java.lang.Object
-
- org.dmfs.jems2.iterable.DelegatingIterable<Pair<Left,Right>>
-
- org.dmfs.jems2.iterable.Paired<Left,Right>
-
- All Implemented Interfaces:
java.lang.Iterable<Pair<Left,Right>>
public final class Paired<Left,Right> extends DelegatingIterable<Pair<Left,Right>>
AnIterablecombining the elements of two givenIterables into anIterableofPairs.This iterates as many elements as the shorter of both
Iterables.Example
Paired(["a", "b", "c"], ["u", "v", "w", "x"]) -> [ ("a", "u"), ("b", "v"), ("c", "w") ]
-
-
Method Summary
-
Methods inherited from class org.dmfs.jems2.iterable.DelegatingIterable
iterator
-
-