Schrödinger's Stride

Tomek Sowiński just at ask.me
Sun Oct 10 11:34:55 PDT 2010


Currently the contents of Stride depend on from which end we look at it:

auto m = [1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4]; // 3 rows, 4 columns
auto col = stride(m, 4);
assert(equal(col, [1, 1, 1]));
assert(equal(retro(col), [4, 4, 4]));

Is the quantum behavior intended?

-- 
Tomek


More information about the Digitalmars-d mailing list