blob: a16fa14b4ad88c0bec8a7482788b591e5dff290d [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstrad59c3892019-11-28 20:53:39 +01002 int widthof(mapping map)
MG Mud User88f12472016-06-24 23:31:02 +02003
Zesstra715ec202025-07-09 22:18:31 +02004DESCRIPTION
5 Returns the number of values per key of mapping <map>.
6 If <map> is 0, the result is 0.
MG Mud User88f12472016-06-24 23:31:02 +02007
Zesstra715ec202025-07-09 22:18:31 +02008EXAMPLES
9 mapping m = ([ "foo": 1;2 ]);
10 widthof(m) --> returns 2
MG Mud User88f12472016-06-24 23:31:02 +020011
Zesstra715ec202025-07-09 22:18:31 +020012HISTORY
13 Introduced in LDMud 3.2.6.
MG Mud User88f12472016-06-24 23:31:02 +020014
Zesstra715ec202025-07-09 22:18:31 +020015SEE ALSO
16 sizeof(E), mkmapping(E), m_reallocate(E), m_values(E),
17 unmkmapping(E)