Extracted from Pike v7.4 release 117 at 2005-08-23.
pike.ida.liu.se
[Top]
predef::

Method m_delete()


Method m_delete

mixed m_delete(object|mapping map, mixed index)

Description

If map is an object that implements lfun::_m_delete() , that function will be called with index as the signle argument.

Other wise if map is a mapping the entry with index index will be removed from map destructively.

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 map destructively.

See also

mappingp()