Start Info Community Spielen
 
 

Morgengrauner Dokumentation

Dateipfad: /home/mud/mudlib/doc//efun/member

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  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  parameter.

SEE ALSO
        rmember(E), mappings(LPC)


zurück zur Übersicht

YOUTUBE | FACEBOOK | TWITTER | DISCORD | FEEDBACK | IMPRESSUM | DATENSCHUTZ 1992–2023 © MorgenGrauen.