Returns a new list containing a single occurrence of each duplicated item in the original list . The order of the items in the returned list is not defined.
findDuplicates ( list As List ) As List
Argument | Type | Description |
---|---|---|
list | list | Original list . |
Intent >findDuplicates({4, 7, 4, 2, 6, 6, 3, 1, 3}) --> { 3, 6, 4}A list of 3, 6, and 4 were returned. Note that they are not in the same order as they appear in the original list .
Intent >findDuplicates({"a", "z", "c", "a", "3", "e", "f", "g", "c"}) --> {"c", "a"}