member_array

ldmud-3.2.9/doc/efun/member_array · 677 B

From the archive ldmud-329.tar.gz

Download the archive   « Back to the archive contents

DEPRECATED
SYNOPSIS
        int member_array(mixed item, mixed *arr)
        int member_array(mixed item, string arr)

DESCRIPTION
        Returns the index of the first occurence of item in array arr,
        or occurence of a character in a string. If not found, then -1
        is returned.

        If you want to search through an alist, use assoc() because
        member_array() is good for unsorted but assoc() is faster for
        sorted arrays.

HISTORY
        Superseeded by member().
        Since LDMud 3.2.9, not available if driver is compiled without
          USE_DEPRECATED.

SEE ALSO
        member(E), alists(LPC), mappings(LPC), assoc(E), slice_array(E)

Site Stats

Snippets: 1791
Codebases: 571