1 # Copyright (C) 2007-2009, Parrot Foundation.
4 =head1 Associative Arrays
6 Associative arrays, also known in some places as "dictionaries" or
7 "hashes" are like ordered arrays except they are indexed by strings
8 instead of integers. Parrot has a dedicated Hash PMC, and a number of
9 other PMCs that implement the associative array interface as well.
11 Associative arryas are indexed using C<[ ]> square brackets with a
14 Ordered arrays are often homogeneous structures where all elements in
15 the array are of the same type. This is why Parrot has types like
16 "FixedIntegerArray" and "ResizableStringArray", which only contain
17 integers or strings respectively. Associative arrays are often
18 heterogeneous, where each element may be a different type.
28 myhash['bar'] = "Hello"
48 # vim: expandtab shiftwidth=4 ft=pir: