
unique_mapping(3)     LPC Library Functions     unique_mapping(3)

NNAAMMEE
       unique_mapping() - create a mapping from an array based on
       a function

SSYYNNOOPPSSIISS
       mapping unique_mapping( mixed *arr, string fun, object ob,
                                 mixed extra, ... );
       mapping unique_mapping( mixed *arr, function f, mixed extra, ... );

DDEESSCCRRIIPPTTIIOONN
       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.

SSEEEE AALLSSOO
       filter_array(3), sort_array(3), map(3)

Majik                      26 Jul 1997                          1

