Creates the specified number of custom elements and returns them as an enumeration. Each element is assigned with the value equal to its index in the enumeration.

In effect, this function wraps a sequence of integers from 0 to n-1 into custom elements, which you can iterate using Element Iterator. The current integer value can be accessed within the Element Iterator using the expression:

(Integer) contextElement.value
Further, you can use it as an index to retrieve something else (for instance, an element of some array provided by a template parameter).

Parameter:

n

Specify the number of custom elements to be created.

The negative value is interpreted as 0.

Returns:

The enumeration of created custom elements.

See Also:

CustomElement()

${include ../../../refs/custom_elements.htm}