MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 1 | SYNOPSIS |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame] | 2 | int m_contains(mixed &data1, ..., &dataN, map, key) |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 3 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame] | 4 | DESCRIPTION |
| 5 | If the mapping contains the key map, the corresponding values |
| 6 | are assigned to the data arguments, which must be passed by |
| 7 | reference, and 1 is returned. If key is not in map, 0 is |
| 8 | returned and the data args are left unchanged. |
| 9 | It is possible to use this function for a 0-value mapping, in |
| 10 | which case it has the same effect as member(E). |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 11 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame] | 12 | HISTORY |
| 13 | Renamed from 'mapping_contains()' in LDMud 3.2.6. |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 14 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame] | 15 | SEE ALSO |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 16 | m_entry(E), mappings(LPC), member(E) |