RosettaCodeData/Task/Associative-array-Creation/Phix/associative-array-creation.phix

9 lines
306 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
setd("one",1)
setd(2,"duo")
setd({3,4},{5,"six"})
?getd("one") -- shows 1
?getd({3,4}) -- shows {5,"six"}
?getd(2) -- shows "duo"
deld(2)
?getd(2) -- shows 0