Content deleted Content added
Tag: nowiki added |
|||
Line 510:
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.
=== [[Julia (programming language)|Julia]] ===
Declare dictionary:
phonebook = Dict( "Sally Smart" => "555-9999", "John Doe" => "555-1212", "J. Random Hacker" => "555-1337" )
Access element:
phonebook["Sally Smart"]
Add element:
phonebook["New Contact"] = "555-2222"
Delete element:
delete!(phonebook, "Sally Smart")
Get keys and values as iterables:
keys(phonebook)
values(phonebook)
=== [[Korn Shell|KornShell]] 93 (and compliant shells: ksh93, zsh, bash4...) ===
|