Associative array/Creation: Difference between revisions
→{{header|langur}}
(PascalABC.NET) |
Langurmonkey (talk | contribs) |
||
Line 3,933:
Hash keys in langur may be numbers or strings. Number keys are simplified, so that 1.0 is the same key as 1.
<syntaxhighlight lang="langur">var
# may assign with existing or non-existing hash key (if hash is mutable)
writeln
writeln
writeln
# using an alternate value in case of invalid index; prevents exception
writeln
writeln
</syntaxhighlight>
{{out}}
|