Extracted from Pike v7.6 release 112 at 2009-09-11.
pike.ida.liu.se
[Top]

Method mkmapping()


Method mkmapping

mapping mkmapping(array ind, array val)

Description

Make a mapping from two arrays.

Makes a mapping ind[x] :val[x] , 0 <= x < sizeof(ind).

ind and val must have the same size.

This is the inverse operation of indices() and values() .

See also

indices() , values()