Jump to content

Associative array/Creation: Difference between revisions

m (→‎{{header|Sidef}}: simplifications)
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 .hash = h{1: "abc", "1": 789}
 
# may assign with existing or non-existing hash key (if hash is mutable)
890

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.