why does phobos use [0, 5, 8, 9][] instead of [0, 5, 8, 9] in examples?

Timothee Cour via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Apr 7 19:40:02 PDT 2015


Eg, code like this in std.algorithm:
assert(equal(setSymmetricDifference(a, b), [0, 5, 8, 9][]));
why not just:
assert(equal(setSymmetricDifference(a, b), [0, 5, 8, 9]));
?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150407/255e8eab/attachment.html>


More information about the Digitalmars-d-learn mailing list