Dokumentation zu: member(E)

HR Image


SYNOPSIS
        int member(mixed *array, mixed elem [, int start])
        int member(string s, int elem [, int start])
        int member(bytes s, int elem [, int start])
        int member(mapping m, mixed key)

DESCRIPTION
        For arrays, strings and byte sequences, returns the index of the
        first occurance of second arg in the first arg, or -1 if none found.
        If <start> is given and non-negative, the search starts at
        that position. A start position beyond the end of the string
        or array will cause the efun to return -1.

        For mappings it checks, if key is present in mapping m and
        returns 1 if so, 0 if key is not in m.

HISTORY
        LDMud 3.3.556 added the <start> parameter.

SEE ALSO
        rmember(E), mappings(LPC)

Die Seite ist auch in Deutsch vorhanden.

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