Aurora Visio Studio TOP » Filter Reference » Array » Array Basics » CreateUniformArray

CreateUniformArray


Module: FoundationLite

Creates an array of the specified size with all elements initialized to the specified value.

Name Type Range Description
Input value
inSize Integer 0 - 100000000 Size of the array being constructed
Input value
inValue <T> Common value of the array elements
Output value
outArray <T>Array Created array

The type of this filter is defined using the type variable T which represents any valid type. Read more.

Examples

inSize = 5
inValue = 1
outArray = {1,1,1,1,1}

Errors

This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Negative inSize value in CreateUniformArray.

Complexity Level

This filter is available on Advanced Complexity Level.

See Also

  • CreateArray – Creates an array from up to 8 individual objects.