unique_mapping

skylib_fluffos_v3/mudlib/doc/driver/efuns/mappings/unique_mapping · 606 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

.\"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

Site Stats

Snippets: 1791
Codebases: 571