Associative array/Creation: Difference between revisions

Jakt
(Jakt)
Line 3,478:
 
Note that J's symbols (http://www.jsoftware.com/help/dictionary/dsco.htm) might also be used for this purpose. However, symbols are not garbage collected within a J session (and, instead, a mechanism is provided to optionally preserve them across sessions).
 
=={{header|Jakt}}==
<syntaxhighlight lang="jakt">
fn main() {
let dictionary = ["foo": 1, "bar": 2]
println("{}", dictionary)
}
</syntaxhighlight>
 
=={{header|Java}}==
89

edits