Create an object/Native demonstration: Difference between revisions
Create an object/Native demonstration (view source)
Revision as of 18:07, 14 September 2020
, 3 years ago→{{header|Wren}}: Now aligns with output.
(→{{header|Wren}}: Wasn't quite right before.) |
(→{{header|Wren}}: Now aligns with output.) |
||
Line 1,280:
System.print(fsm)
System.print(fsm.containsKey("c"))
fsm["c"] = 5 // attempt to add a new key/value pair
System.print(fsm) // ignored
fsm.reset("a")
System.print(fsm)
System.print(fsm.keys.toList)
System.print(fsm.values.toList)
for (me in fsm) System.print([me.key, me.value])
</lang>
{{out}}
|