
unique_mapping(3)     LPC 系统函数     unique_mapping(3)

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

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

描述
     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.

请参考
     filter_array(3), sort_array(3), map(3)

MudOS                Last change: 5 Sep 1994                    1

