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

/doc/efuns/map

HOME :: doc :: efuns :: map

     mmmmaaaapppp((((3333))))                 MMMMuuuuddddOOOOSSSS ((((5555 SSSSeeeepppp 1111999999994444))))                  mmmmaaaapppp((((3333))))

     NNNNAAAAMMMMEEEE
          map() - modify an mapping, array, or string via application
          of a function

     SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
          mapping map( mapping | mixed* | string x, string fun, object ob,
                       mixed extra, ... );
          mapping map( mapping | mixed* | string x, function f, mixed extra, ... );

     DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
          If the first argument is a mapping, map() behaves exactly
          like map_mapping().  If it is an array, map() behaves
          exactly like map_array().  If it's argument is a string,
          map() passes each character (as an int) to the function, and
          replaces the character with the return value if the return
          value is a non-zero integer.

     SSSSEEEEEEEE AAAALLLLSSSSOOOO
          filter_array(3), sort_array(3), map_array(3), map_mapping(3)

     Page 1                                          (printed 3/16/95)

HOME :: doc :: efuns :: map