Comparison of programming languages (associative array): Difference between revisions

Content deleted Content added
m Julia: <source lang="julia">
Line 538:
 
Definition:
<source lang="ksh">
 
typeset -A phonebook; # ksh93
declare -A phonebook; # bash4
phonebook=(["Sally Smart"]="555-9999" ["John Doe"]="555-1212" ["[[J. Random Hacker]]"]="555-1337");
</source>
 
Dereference:
<source lang="ksh">
 
${phonebook["John Doe"]};
</source>
 
=== [[Lisp programming language|Lisp]] ===