Understanding slide

Jordan Wilson wilsonjord at gmail.com
Thu Mar 22 03:39:38 UTC 2018


auto a = iota(5).slide!(Yes.withPartial)(3);
auto b = iota(5).slide!(No.withPartial)(3);
assert (a.equal(b));

The assert passes, but I would expect it to fail? They both are:
[[0,1,2],[1,2,3],[2,3,4]]

Thanks,

Jordan


More information about the Digitalmars-d-learn mailing list