Module ddash.algorithm.zip

Zips up ranges up together

Example

auto r1 = [[1, 2, 3], [4, 5, 6]];
assert(r1.zipEach.equal([[1, 4], [2, 5], [3, 6]]));
auto r2 = [[1, 3], [4, 5, 6]];
assert(r2.zipEach.equal([[1, 4], [3, 5]]));
auto r3 = [[1, 3], [], [4, 5, 6]];
assert(r3.zipEach.equal((int[][]).init));

Functions

NameDescription
zipEach(rangeOfRanges) Zip a range of ranges together by element.