NAME mapping - an associative array SYNTAX construction: ([ index1:data1 , index2:data2 , ... ]) indexing: data1=map[index1] OPERATORS [], + m_delete, mkmapping, mappingp, m_values, m_indices, m_sizeof map_mapping, filter_mapping DESCRIPTION A mapping is basically an array that can be indexed on any type, not not just integers. It can also be seen as a way of linking data (usaully strings) together. It consists of a lot of index-data pairs which are linked togeter in such a way that map[index1] returns data1. It is also possible to set that data by writing map[index1]=new_data1. If you try to set an index in a mapping that isn't already present in the mapping then it will be added or return 0 if you just query it. SEE ALSO arrays
Help topics available:
You are guest number 117 since December 2019.
This file was last modified: June 2000.