pike.ida.liu.se
Search for
Home > Docs > Pike reference

[Top]

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()

Module reference for Pike v7.8 release 116, 2008-12-31