frontTransversal

Given a range of ranges, iterate transversally through the first elements of each of the enclosed ranges.

FrontTransversal!(RangeOfRanges, opt)
frontTransversal
(
RangeOfRanges rr
)

Examples

import std.algorithm.comparison : equal;
int[][] x = new int[][2];
x[0] = [1, 2];
x[1] = [3, 4];
auto ror = frontTransversal(x);
assert(equal(ror, [ 1, 3 ][]));

Meta