Content deleted Content added
→JavaScript: copy editing (wikEd on to diagnose dash usage) |
→Julia: copy editing and linking (wikEd belatedly off) |
||
Line 679:
See [http://blog.metawrap.com/2006/05/30/june-6th-is-javascript-array-and-object-prototype-awareness-day/ JavaScript Array And Object Prototype Awareness Day] for more information on the issue.
===
In [[Julia (programming language)|Julia]], the following operations manage associative arrays.
Declare dictionary:
Line 685 ⟶ 687:
phonebook = Dict( "Sally Smart" => "555-9999", "John Doe" => "555-1212", "J. Random Hacker" => "555-1337" )
</syntaxhighlight>
Access element:
Line 697 ⟶ 700:
delete!(phonebook, "Sally Smart")
Get keys and values as [[Iterator#Implicit_iterators|iterables]]:
keys(phonebook)
|