Handbook
Glossary
&rename ( key n -- )
Factor handbook
»
Developer tools
»
The inspector
Prev:
&add ( value key -- )
Next:
&delete ( n -- )
Vocabulary
inspector
Inputs
key
an
object
n
a non-negative integer
Outputs
None
Word description
Changes the key of the
n
th slot of the current object.
Errors
Throws an error if the object does not support this operation.
Definition
USING:
assocs
inspector.private
mirrors
namespaces
;
IN:
inspector
:
&rename
( key n -- )
key@
mirror
get
rename-at
&push
reinspect
;