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

/doc/efuns/unique_mapping

HOME :: doc :: efuns :: unique_mapping

     uuuunnnniiiiqqqquuuueeee____mmmmaaaappppppppiiiinnnngggg((((3333))))      MMMMuuuuddddOOOOSSSS ((((5555 SSSSeeeepppp 1111999999994444))))       uuuunnnniiiiqqqquuuueeee____mmmmaaaappppppppiiiinnnngggg((((3333))))

     NNNNAAAAMMMMEEEE
          unique_mapping() - create a mapping from an array based on a
          function

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

     DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
          Returns a mapping built in the following manner:

          members for which the function returns the same value are
          grouped together, and associated with the return value as
          the key.

     SSSSEEEEEEEE AAAALLLLSSSSOOOO
          filter_array(3), sort_array(3), map(3)

     Page 1                                          (printed 3/16/95)

HOME :: doc :: efuns :: unique_mapping