RosettaCodeData/Task/Remove-duplicate-elements/Nanoquery/remove-duplicate-elements.nanoquery

9 lines
157 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
items = {1, 2, 3, "a", "b", "c", 2, 3, 4, "b", "c", "d"}
unique = {}
for item in items
if not item in unique
unique.append(item)
end
end