Language Support
Associative arrays can be implemented in any programming language as a package and many language systems provide them as part of their standard library. In some languages, they are not only built into the standard system, but have special syntax, often using array-like subscripting.
Built-in syntactic support for associative arrays was introduced by SNOBOL4, under the name "table". MUMPS made multi-dimensional associative arrays, optionally persistent, its key data structure. SETL supported them as one possible implementation of sets and maps. Most modern scripting languages, starting with AWK and including Perl, Tcl, JavaScript, Python, Ruby, and Lua, support associative arrays as a primary container type. In many more languages, they are available as library functions without special syntax.
In Smalltalk, Objective-C, .NET, Python, and REALbasic they are called dictionaries; in Perl and Ruby they are called hashes; in C++, Java, Go, Clojure and Scala they are called maps (see map (C++), unordered_map (C++), and Map
); in Common Lisp and Windows PowerShell, they are called hash tables (since both typically use this implementation). In PHP, all arrays can be associative, except that the keys are limited to integers and strings. In JavaScript (see also JSON), all objects behave as associative arrays. In Lua, they are called tables, and are used as the primitive building block for all data structures. In Visual FoxPro, they are called Collections.
Read more about this topic: Associative Array
Famous quotes containing the words language and/or support:
“We find that the child who does not yet have language at his command, the child under two and a half, will be able to cooperate with our education if we go easy on the blocking techniques, the outright prohibitions, the nos and go heavy on substitution techniques, that is, the redirection or certain impulses and the offering of substitute satisfactions.”
—Selma H. Fraiberg (20th century)
“I believe, as Maori people do, that children should have more adults in their lives than just their mothers and fathers. Children need more than one or two positive role models. It is in your childrens best interest that you help them cultivate a support system that extends beyond their immediate family.”
—Stephanie Marston (20th century)