solidify_mapping
lpc4/lib/doc/efun/solidify_mapping · 488 B
From the archive lpc4.05.14.tar.gz
Download the archive « Back to the archive contents
NAME
solidify_mapping - order a mapping into arrays of equal indexes
SYNTAX
mapping solidify_mapping(mapping m);
DESCRIPTION
This efun returns a mapping of this form:
([
index1 : ({ all data in m that had index1 }),
index2 : ({ all data in m that had index2 }),
....
])
It replaces the old unique_array.
EXAMPLE
solidify_mapping(([1:3,1:5,10:6,4:5,1:3,4:5,10:11]));
would return:
([
1:({3,5,3}),
4:({5,5}),
10:({6,11}),
])
SEE ALSO
map_array, mkmapping