Distinct (keyword)

From RemObjects Software

Jump to: navigation, search

This is a Oxygene Keyword 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


Product: RemObjects Oxygene (formerly known as Chrome)
Current version: 3.0 Previous Versions: 'Joyride' (2.0), 'Floorshow' (1.5), 'Adrenochrome' (1.0)

GlossaryKeywordsLanguage FeaturesPlatform FeaturesSamplesArticlesHow ToIssues

Personal tools