unique_mapping
foundation2_fluffos_v1/lib/doc/efun/unique_mapping · 687 B
From the archive foundation2_fluffos_v1.zip
Download the archive « Back to the archive contents
unique_mapping(3) LPC Library Functions unique_mapping(3)
NAME
unique_mapping() - create a mapping from an array based on a
function
SYNOPSIS
mapping unique_mapping( mixed *arr, string fun, object ob,
mixed extra, ... );
mapping unique_mapping( mixed *arr, function f, mixed extra, ... );
DESCRIPTION
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.
SEE ALSO
filter_array(3), sort_array(3), map(3)
MudOS Last change: 5 Sep 1994 1