.\"create a mapping from an array .DT unique_mapping $MUDNAME$ driver help unique_mapping .SH Name .SI 5 unique_mapping() - partition an array into groups .EI .SH Synopsis .SI 5 mapping unique_mapping( mixed *arr, string fun, object ob, mixed extra, ... ); mapping unique_mapping( mixed *arr, function f, mixed extra, ... ); .EI .SH Description .SP 5 5 unique_mapping() evaluates the function `f' with each element of the array `arr', and constructs a mapping with the return values as keys, and subarrays of elements that returned value `value' as values. .EP .SH See also .SI 5 unique_array() .EI