a!map() Function

Creates a map of values (Any Type) with each value stored at the corresponding string key. Values stored in maps are not wrapped in a variants.

Syntax

a!map( key1: value1, keyN: valueN, … )

key1: (Any Type) A key value pair to store in the map. The value is not wrapped in a variant.

keyN: (Any Type) Any additional key value pairs, as needed.

Returns

Map

Notes

While similar to a dictionary, which uses curly braces {}, the values stored in a map are not wrapped in variants.

Keywords must be unique.

Keywords are not case sensitive.

Casting:

  • A map can be cast to a dictionary, CDT, record, or text.
  • A dictionary, CDT, or record can be cast to a map.

Examples

You can experiment with this function in the test box below.

Test Input

Open in Github

On This Page

FEEDBACK