blob: 17def9300441444a15e5fb37eb74b1c34a807491 [file] [log] [blame]
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)