blob: 32b9e0260c05450ba75a4c607316f4cc08d080cb [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS:
2 mapping m_delete(mapping map, mixed key)
3
4DESCRIPTION:
5 Remove the entry with index 'key' from mapping 'map', and
6 return the changed mapping. If the mapping does not have an
7 entry with index 'key', the first argument is returned.
8
9 If you don't want to modify the mapping map, checkout the
10 simul_efun m_delete().
11
12EXAMPLE:
13
14 mapping m1, m2;
15
16 m1 = ([ "a":1, "b":2, "c":3 ]);
17
18 m2 = efun::m_delete(m1, "b");
19 => m1 = ([ "a":1, "c":3 ])
20 m2 = ([ "a":1, "c":3 ])
21
22SEE ALSO:
23 mappingp(E), mkmapping(E), m_indices(E), m_values(E),
24 sizeof(E)