Method m_delete()
- Method m_delete
mixedm_delete(object|mappingmap,mixedindex)- Description
If
mapis an object that implements lfun::_m_delete(), that function will be called withindexas its single argument.Otherwise if
mapis a mapping the entry with indexindexwill be removed frommapdestructively.If the mapping does not have an entry with index
index, nothing is done.- Returns
The value that was removed will be returned.
- Note
Note that m_delete() changes
mapdestructively.- See also