MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | SYNOPSIS: |
| 2 | mapping m_delete(mapping map, mixed key) |
| 3 | |
| 4 | DESCRIPTION: |
| 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 | |
| 12 | EXAMPLE: |
| 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 | |
| 22 | SEE ALSO: |
| 23 | mappingp(E), mkmapping(E), m_indices(E), m_values(E), |
| 24 | sizeof(E) |