Creates an iterator that returns elements grouped in pairs ### Example ``` anIterator = new DZipIterator([[1, 2], [3, 4]]); * anIterator.toList(); Returns [[1, 3], [2, 4]] ``` You can also chose a custom auto to zip the elements together, such as doing a sum by index: ### Example ``` anIterator = new DZipIterator([[1, 2], [3, 4]], auto (a, b) { return a + b; }); * anIterator.toList(); Returns [4, 6] ```
Inherited | Abstract | Final | Static | Datatype | Header |
---|---|---|---|---|---|
Json | Json key() | ||||
this(Json[string] | this(Json[string] listToZip, callable aCallable = null) | ||||
bool | bool valid() | ||||
void | void __unserialize(Json[string] data) | ||||
Json[string] | Json[string] __serialize() | ||||
void | void rewind() | ||||
void | void next() | ||||
Json | Json currentValue() |