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

9 lines
131 B
D
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
void main() {
import std.stdio, std.algorithm;
[1, 3, 2, 9, 1, 2, 3, 8, 8, 1, 0, 2]
.sort()
.uniq
.writeln;
}