RosettaCodeData/Task/Remove-duplicate-elements/D/remove-duplicate-elements-1.d

9 lines
131 B
D
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
void main() {
2013-10-27 22:24:23 +00:00
import std.stdio, std.algorithm;
[1, 3, 2, 9, 1, 2, 3, 8, 8, 1, 0, 2]
.sort()
.uniq
.writeln;
2013-04-10 23:57:08 -07:00
}