Remove duplicate elements: Difference between revisions

Content added Content deleted
Line 45: Line 45:
set unique to {}
set unique to {}
repeat with i in array
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 if
end repeat
end repeat</lang>
return unique</lang>


=={{header|AutoHotkey}}==
=={{header|AutoHotkey}}==