Create a dictionary

plist

Creates an empty dictionary.

Example:

Both versions of the code below are equivalent. The first uses traditional LOGO instructions to access values in a dictionary, while the second version the same access is denoted with POOL operators.

make "s plist
print :s
setitem "pass :s "secret
setitem "number :s 12.3
print :s
print item "pass :s

"s := plist
print :s
:s,"pass := "secret
:s,"number := 12.3
print :s
print :s,"pass

Output:

[]
[{pass secret} {number 12.3}]
secret

See also:

Dictionary

Table of Content