Tag Link | [Map] | Category | Array |
---|---|---|---|
Type | Substitution | Source Available | No |
Support | Preferred | Version | 5.0 |
Change | Unchanged | Data Source | Any |
Output Type | Map | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0 |
[Map] creates a map data type with each of the name/value parameters of the tag as the initial elements of the map. The names and values of each name/value parameter can be of any data type.
[Map: 'Map Names'='Map_Values']
[Variable: 'VariableName'=(Map: 'Map Names'='Map_Values')]
Required Parameters | |
---|---|
Map Names and Values | The name/value parameters of the [Map] tag are copied as the starting elements of the map. |
To create a map from integers to days of the week:
Use the [Map] tag with name/value pairs for each of the names of the days of the week as parameters. The following example stores a map which maps integers to the names of the days of the week in a variable named DaysOfTheWeek.
[Variable: 'DaysofTheWeek'=(Map: 0='Sunday', 1='Monday',
2='Tuesday', 3='Wednesday', 4='Thursday', 5='Friday', 6='Saturday')]