|
|
|
Reverse a list
Added on 6/29/1999
|
Reverses the sequence of a list.
--Copyright © 1997 -1998 Metaforce Interactive.
--http://www.metaforce.com
on reverseList whichList
set outputList to []
repeat with x in whichList
-- Inserting the next list value at position 1 will bump the previous
-- list values over by one index.
addAt(outputList,1,x)
end repeat
return outputList
end reverseList
|
|