Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,12 @@
|
|||
var .hash = h{1: "abc", "1": 789}
|
||||
|
||||
# may assign with existing or non-existing hash key (if hash is mutable)
|
||||
.hash[7] = 49
|
||||
|
||||
writeln .hash[1]
|
||||
writeln .hash[7]
|
||||
writeln .hash["1"]
|
||||
|
||||
# using an alternate value in case of invalid index; prevents exception
|
||||
writeln .hash[1; 42]
|
||||
writeln .hash[2; 42]
|
||||
Loading…
Add table
Add a link
Reference in a new issue