Returns a range of the elements in this set. The elements are ordered ascending.
1 import std.algorithm : equal; 2 import std.range : iota; 3 4 NaturalNumberSet set; 5 auto someNumbers = iota(set.partSize).filter!"a % 3 == 0"; 6 7 foreach (i; someNumbers) 8 { 9 set.add(i); 10 } 11 12 assert(equal(someNumbers, set.elements));
See Implementation
Returns a range of the elements in this set. The elements are ordered ascending.