Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
b = [1, 5, 2, 6, 6, 2, 2, 1, 9, 8, 6, 5]
|
||||
|
||||
// One way, using OrderedList. An OrderedList is a type of array that keeps
|
||||
// its elements in order. The items must be comparable.
|
||||
a = new OrderedList
|
||||
println[a.insertAllUnique[b]]
|
||||
|
||||
// Another way, using the "set" datatype and back to an array.
|
||||
println[toArray[toSet[b]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue