Breadcrumbs

buildMap() Operation


Syntax


anArray.buildMap("aKeyName")


Semantics

Build a map from anArray. The operation returns a value of type Map.

classDiagramMap.png

Substitutables

anArray

Can be any variable or object attribute having the type Array and having array elements of complex type.

aKeyName

Name of the key attribute of the complex type in double quotes.

Examples


create hashMap;
set hashMap = recordArray.buildMap("name");


classAdress.png

recordArray is an array containing elements of type Address.


buildMap() is a convenient method, if you need a map indexing an array.



icon_download_example.png

<your example path>\E2E Action Language\map\uml\mapBenchmark.xml