RosettaCodeData/Task/Remove-duplicate-elements/D/remove-duplicate-elements-2.d
Ingy döt Net 776bba907c Sync
2013-10-27 22:24:23 +00:00

10 lines
191 B
D

void main() {
import std.stdio;
immutable data = [1, 3, 2, 9, 1, 2, 3, 8, 8, 1, 0, 2];
bool[int] hash;
foreach (el; data)
hash[el] = true;
hash.byKey.writeln;
}