Jump to content

Create an object/Native demonstration: Difference between revisions

→‎{{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>
</lang>
 
{{out}}
9,483

edits

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