widthof

ldmud-3.3.719/doc/efun/widthof · 380 B

From the archive ldmud-3.3.719.tar.gz

Download the archive   « Back to the archive contents

SYNOPSIS
        int widthof (mapping map)

DESCRIPTION
        Returns the number of values per key of mapping <map>.
        If <map> is 0, the result is 0.

EXAMPLE
        mapping m = ([ "foo": 1,2 ]);
        widthof(m)  --> returns 2

HISTORY
        Introduced in LDMud 3.2.6.

SEE ALSO
        sizeof(E), mkmapping(E), m_reallocate(E), m_values(E),
        unmkmapping(E)

Site Stats

Snippets: 1791
Codebases: 571