Associative array/Iteration: Difference between revisions

(→‎Kotlin: Shortened the code for better readability)
 
(One intermediate revision by the same user not shown)
Line 4,324:
 
=={{header|UNIX Shell}}==
TwoAt least two shells have associative arrays, but they use different syntax to access their keys.
 
{{works with|ksh93}}
{{works with|bash|4.0 and above}}
<syntaxhighlight lang="bash">typeset -A a=([key1]=value1 [key2]=value2)
 
1,934

edits