dict Module

del

dict 'sym dict

Removes 'sym from dict1 and returns dict1.

dup

dict1 dict2

Returns a copy of dict1.

get

dict 'sym a

Returns the value of key 'sym from dictionary dict.

get-raw

dict 'sym dict:rawval

Returns the value of key 'sym from dictionary dict, wrapped in a dict:rawval.

has?

dict 'sym bool

Returns true if dictionary dict contains the key 'sym, false otherwise.

keys

dict (str*)

Returns a quotation containing all the keys of dictionary dict.

pick

dict1 quot dict2

Returns a new dictionary dict2 containing the elements of dict1 whose keys are included in quot.

pairs

dict (a*)

Returns a quotation containing a quotation for each value/key pair (value first, key second) of dictionary dict.

set

dict a 'sym dict

Sets the value of the 'sym of dict1 to a, and returns the modified dictionary dict.

set-sym

dict 'sym 'sym dict

Sets the value of the 'sym of dict1 to 'sym (treating it as a symbol), and returns the modified dictionary dict.

type

dict str

Returns a string set to the type of dict (empty if the dictionary has no type).

values

dict (a*)

Returns a quotation containing all the values of dictionary dict.