&add ( value key -- )
Factor documentation > Factor handbook > Developer tools > The inspector
Prev:&put ( value n -- )
Next:&rename ( key n -- )


Vocabulary
inspector

Inputs and outputs
valuean object
keyan object


Word description
Adds a key/value pair to the current object.

Errors
Throws an error if the object does not support this operation.

See also
&back, &at, &put, &delete

Definition
USING: assocs inspector.private mirrors namespaces ;

IN: inspector

: &add ( value key -- ) mirror get set-at &push reinspect ;