Distinct (keyword)
From The Oxygene Language Wiki
This is a Language topic
Feel free to add your notes to this topic below.
The distinct operator will eliminate any duplicates from a sequence, returning only unique elements. distinct will keep the first occurrence of each unique element, and otherwise not change the sorting order of the sequence.
For example, the following code will return 1, 3, 5, 7 and 9:
var list := from i in [1,3,5,5,7,9,5,1] distinct;
See Also
Area: Oxygene Language
Compiler version: Oxygene 5
Language Glossary — Keywords — Types — FAQ — How To