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:
C_vs_LPC Lesson1 README arrays block
class3 class4 class1 class2 control_structures
for foreach function inheritance keywords
learn_lpc/ lfuns lpc_standardized mappings operators
preprocessor profezzorn_has_the_word switch things_not_to_do types
virtual while

[START|BACK ]




[ NannyMuds main page | FAQ | Contact us ]

You are guest number 117 since December 2019.
This file was last modified: June 2000.