Renames a dictionary entry
(dictrename ename oldsym newsym)
The newsym value, if the rename is successful. If the oldname is not present in the dictionary, or if ename or newname is invalid, or if newname is already present in the dictionary, then dictrename returns nil.
The following example renames the dictionary created in the dictadd sample:
Command: (dictrename (namedobjdict) "my_way_cool_dictionary" "An even cooler dictionary")
"An even cooler dictionary"
See Also
-
The dictadd, dictnext, dictremove, dictsearch, and namedobjdict functions.