would it make sense to have a built-in function like the following?
Code: Select all
Macro RenameMapElement (_map_, _oldKey_, _newKey_)
; in: _map_: without trailing '()'
If FindMapElement(_map_(), _newKey_) = #Null
_map_(_newKey_) = _map_(_oldKey_)
DeleteMapElement(_map_(), _oldKey_)
EndIf
EndMacro