dict.group Reference

Build a dictionary iteratively

dict.group

Description

Use the dict.group object to build up a dictionary by sending key-value pairs as lists. The key-value pairs will be collected into the dictionary until a 'bang' is received. The 'bang' will send out the dictionary and start the process over again.

Discussion

Note: The colon (:) is a reserved character and is not supported in keys or values.

Arguments

name [symbol]

Optional

Name of the dictionary to create

Attributes

name [symbol]

Name associated with the created/sent dictionary

Common Box Attributes

Messages

bang

Send out the dictionary and reset the contents

list

Arguments

key-value [list]
Set a key and its values. The first element of the list is the key, followed by its values. Lists will be collected into the dictionary until a bang is received.

anything

Arguments

dictionary-or-keyvaluepair [list]
A key-value pair will add the key/value to the dictionary or use dictionary syntax to add more complex structures.

See Also

Name Description
dict.deserialize
dict.iter
dict.join
dict.pack
dict.print
dict.route
dict.serialize
dict.slice
dict.strip
dict.unpack
dict.view
dict
Dictionaries Dictionaries