Create an object/Native demonstration: Difference between revisions

m
→‎{{header|zkl}}: fix syntax highlighting markup
m (→‎{{header|Phix}}: added syntax colouring, marked p2js compatible)
m (→‎{{header|zkl}}: fix syntax highlighting markup)
Line 1,453:
=={{header|zkl}}==
zkl has two dictionary objects: SD, a small dictionary that is created immutable and the "regular" dictionary has has a makeReadOnly method. They both behave the same when locked down.
<lang zkl">d:=SD("one",1,"two",2);
d.keys; //-->L("one","two")
d["one"]; //-->1
10,327

edits