Dokumentation zu: unmkmapping(E)

HR Image


SYNOPSIS
        mixed * unmkmapping(mapping map)

DESCRIPTION
        Take mapping <map> and return an array of arrays with the keys
        and values from the mapping.

        The return array has the form ({ keys[], data0[], data1[], ... }),
        with keys[] being the array of all keys, data0[] the array of
        all values in the first column, data1[] the array of all values
        in the second column, etc. In particular, the data for key[x]
        is stored in data0[x], data1[x], etc.

        unmkmapping() is inverse to mkmapping(), so that

            apply(#'mkmapping, unmkmapping(m)) == m

        holds.

EXAMPLES
        mapping m = ([ 1:10;20, 2:11;21 ]);
        unmkmapping(m)
          --> returns ({ ({1, 2}), ({ 10, 11 }), ({ 20, 21 }) })

HISTORY
        Introduced in LDMud 3.2.6.

SEE ALSO
        mappings(LPC), mappingp(E), m_indices(E), m_values(E),
        m_delete(E), sizeof(E), widthof(E)

Die Seite ist auch in Deutsch vorhanden.

Start » Magierhandbuch » Docu » Efun » Unmkmapping Letzte Generierung: 25.04.2021, 01:58
Email an: mud@wl.mud.de
Valid HTML 4.01!