Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
void main() {
|
||||
import std.stdio, std.algorithm;
|
||||
|
||||
[1, 3, 2, 9, 1, 2, 3, 8, 8, 1, 0, 2]
|
||||
.sort()
|
||||
.uniq
|
||||
.writeln;
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
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;
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
void main()
|
||||
{
|
||||
import std.stdio, std.algorithm, std.array;
|
||||
|
||||
auto a = [5,4,32,7,6,4,2,6,0,8,6,9].sort.uniq.array;
|
||||
a.writeln;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue