anArray.buildMap("aKeyName")
Build a map from anArray. The operation returns a value of type Map.
create hashMap; set hashMap = recordArray.buildMap("name");
buildMap() is a convenient method, if you need a map indexing an array.
buildMap()