Mapping Array Members

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[].name
	
This has the effect of having an attribute called name on the array of String type.
The equivalent code without using member mapping is as follows:
	array as MyComponent[]
	names as String[]
	// ... initialize array ...
	for each component in array do
	    names[] = component.name
	end
	
The following is an example using Interval:
	intervals as Interval[]
	intervals = ['1d2h', '2d3h', '5d6h']
	display intervals[].hours
	
This displays an Int array containing [2, 3, 6].