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:
Iterable<Pair<Left,Right>>

public final class Paired<Left,Right> extends DelegatingIterable<Pair<Left,Right>>
An Iterable combining the elements of two given Iterables into an Iterable of Pairs.

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")
 ]