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

9 lines
157 B
Plaintext

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