Creates anassociative array containing specified variables and expressions.
result = ASARR(keys_arr, values_list)
valuei Expressions or variables used to set the values of the associative array elements.
keys_arr A Fstring array containing one or more key names for elements of the associative array.
values_list A variable of type list containing expressions or variables used to set the values of the associative array elements. The LIST function is used to create list variables.
asar1 = ASARR('byte', 1B, 'float', 2.2, 'string', '3.3', $ 'struct', {,a:1, b:lindgen(2)})
asar2 = ASARR(['byte', 'float', 'string', 'struct'], $ LIST(1B, 2.2, '3.3', {,a:1, b:lindgen(2)}))
INFO, asar1, /Full
ASAR1 AS. ARR = Associative Array(4) byte BYTE = 1 struct STRUCT = ** Structure $1, 2 tags, 12 length: A INT 1 B LONG Array(2) float FLOAT = 2.20000 string STRING = '3.3' PRINT, asar1
{'byte' 1 'struct'{ 1 0 1} 'float' 2.20000 'string'3.3 } PRINT, asar2
{'byte' 1 'struct'{1 0 1} 'float' 2.20000 'string'3.3 }