ES2 MUD LIB :: 東方故事二(ES2) 天朝帝國 mudlib 瀏覽展示

/doc/efuns/filter_array

HOME :: doc :: efuns :: filter_array

     ffffiiiilllltttteeeerrrr____aaaarrrrrrrraaaayyyy((((3333))))        MMMMuuuuddddOOOOSSSS ((((5555 SSSSeeeepppp 1111999999994444))))         ffffiiiilllltttteeeerrrr____aaaarrrrrrrraaaayyyy((((3333))))

     NNNNAAAAMMMMEEEE
          filter_array() - return a selective sub-array

     SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
          mixed *filter_array( mixed *arr, string fun, object ob,
                               mixed extra, ... );
          mixed *filter_array( mixed *arr, function f, mixed extra, ...);

     DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
          filter_array() returns an array holding the items of 
          which passed sucessfully through the function  found in
          object .  The function  is called for each element
          in  with that element as parameter.  The second
          parameter  and following parameters are sent in each
          call if given.  An object is considered to have passed
          sucessfully through  (and hence is included in the
          return array) if  returns 1.  If f is passed it is used
          instead of ob->fun().  If  is not an array, then 0 will
          be returned.

     SSSSEEEEEEEE AAAALLLLSSSSOOOO
          sort_array(3), map_array(3)

     Page 1                                          (printed 3/16/95)

HOME :: doc :: efuns :: filter_array