Associative array/Creation: Difference between revisions

add E example
m (→‎[[PHP]]: typo & cleaned up code a bit)
(add E example)
Line 102:
hash["bar"] = 100;
assert("foo" in hash);
 
==[[E]]==
[[Category:E]]
 
[].asMap() # immutable, empty
["one" => 1, "two" => 2] # immutable, 2 mappings
[].asMap().diverge() # mutable, empty
["one" => 2].diverge(String, float64) # mutable, initial contents,
# typed (coerces to float)
 
==[[Haskell]]==