Create an object/Native demonstration: Difference between revisions
Content deleted Content added
→{{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}}
|