makeMapping()
Creates a mapping with key-value pairs.
Synopsis
mapping makeMapping([key, value, ...]);
Parameter
Parameter | Description |
---|---|
key | A key |
value | A value |
Return value
A mapping with key-value pairs.
Description
Creates mappings with key-value pairs. Mappings save arbitrary key/value pairs. The keys and values are saved in two arrays (one for keys and one for values). For more information, see chapter Mapping.
Example
main()
{
mapping m = makeMapping(1, "one", 2,"two", 3,"three");
DebugN("Mapping:", m);
}
Assignment
Mapping functions
Availability
CTRL, UI