All of the attributes of an array's element type are mapped to the array. This means that if you have an array of MyComponent and MyComponent has an attribute called name of String type, you can do the following:
array as MyComponent[] names as String[] // ... initialize array ... names = array[].nameThis has the effect of having an attribute called name on the array of String type.
array as MyComponent[] names as String[] // ... initialize array ... for each component in array do names[] = component.name end
intervals as Interval[] intervals = ['1d2h', '2d3h', '5d6h'] display intervals[].hoursThis displays an Int array containing [2, 3, 6].