Distinct (keyword)

From The Oxygene Language Wiki

Jump to:navigation, search

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


Oxygene-48.png

Area: Oxygene Language
Compiler version: Oxygene 5

Language GlossaryKeywordsTypesFAQHow To

Navigation
Areas
More
Toolbox