<HEAD> <TITLE> m_delete - remove a key from a mapping </TITLE> </HEAD> <BODY BACKGROUND=http://www.imaginary.com/~beek/gifs/bg.jpg TEXT=#000000 ALINK=#FFFF00 VLINK=#550000 LINK=#000099> <center> <H1> m_delete - remove a key from a mapping </H1> </center>
<p>
<b> mapping m_delete(mapping m, mixed element); </b>
<p>
This efun is only available if COMPAT_32 is defined.
<p>
It behaves exactly like map_delete(), except that it returns its first
argument.
<p>
Note: the 3.2 version actually returns a copy of the mapping,
so for strict compatibility the following simul is suggested:
<p>
<pre>
mapping m_delete(mapping m, mixed element)
{
mapping ret = copy(m);
map_delete(ret, element);
return ret;
}
</pre>
<p>
However, this version is significantly faster as it avoids the copy.
<p>
See also:
<A HREF=map_delete.html> map_delete </A>
<p>
<HR> <ADDRESS> <A HREF=http://wagner.princeton.edu/~tim> Tim Hollebeek </A> <p> <A HREF="http://www.imaginary.com/~beek/"> Beek </A>@ZorkMUD, Lima Bean, IdeaExchange, TMI-2, and elsewhere </ADDRESS>
<p>