Home
Random
Log in
Settings
About Rosetta Code
Disclaimers
Rosetta Code
Search
Remove duplicate elements: Difference between revisions
Page
Discussion
← Older edit
Newer edit →
Remove duplicate elements
(view source)
Revision as of 01:07, 19 February 2010
43 bytes removed
,
14 years ago
→{{header|AppleScript}}
Revision as of 01:05, 19 February 2010
(
view source
)
rosettacode>Daehl
m
(
→{{header|AppleScript}}
)
← Older edit
Revision as of 01:07, 19 February 2010
(
view source
)
rosettacode>Daehl
(
→{{header|AppleScript}}
)
Newer edit →
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
if
repeat
end
return
repeat
unique
</lang>
=={{header|AutoHotkey}}==
Anonymous user
rosettacode>Daehl