![]()
SYNOPSIS
mixed * m_entry(mapping map, mixed key)
DESCRIPTION
Query the mapping <map> for the entry for <key> and return all
its values in one array.
If <map> does not contain <key>, 0 is returned.
Note: the efun m_add() can be used to add all values for an entry
at once.
EXAMPLES
mapping m = ([ 1:"foo";-1, 2:"bar";-2 ]);
m_entry(m, 0) -> 0
m_entry(m, 1) -> ({ "foo", -1 })
HISTORY
Introduced in LDMud 3.2.10.
SEE ALSO
m_add(E), m_contains(E), mappings(LPC), member(E)
|
| Die Seite ist auch in Deutsch vorhanden. |
| Start » Magierhandbuch » Docu » Efun » M_entry | Letzte Generierung: 25.04.2021, 01:58 | ||
|
|