Remove duplicate elements: Difference between revisions

Line 45:
set unique to {}
repeat with i in array
if (i is not in unique) then
-- very important -- list index starts at 1 not 0
set end of unique to i's contents
if (i is not in unique) then
end if
set end of unique to i
end ifrepeat
endreturn repeatunique</lang>
 
=={{header|AutoHotkey}}==
Anonymous user