Creating an Array: Difference between revisions

Lists with other lists
(List with multiple type of objects)
(Lists with other lists)
Line 36:
==[[AppleScript]]==
[[Category:AppleScript]]
 
AppleScript supports "arrays" as "lists," and they are not limited by a single type.
AppleScript arrays are called lists:
set empty to {}
set ints to {1, 2, 3}
 
set any to {1, "foo", 2.57}
Lists can contain any objects including other lists:
set any to {1, "foo", 2.57, missing value, ints}
 
==[[BASIC]]==
Anonymous user