Specifies the array to select.
Specifies an array from each element of the source array.
1. |
The following example extracts an object sub-array, itself an array within the ModelFinder.Models array. For each model defined in the ModelFinder step, the Item.Occurrences expression accesses an object array of model occurrences, with properties and statistics that can be referenced. The function returns a sub-array whose elements point to each model occurrence found.
FLATTEN(ModelFinder.Models, Item.Occurrences)
|
Specifies the array to select.
Specifies an array from each element of the source array.
Specifies the expression to perform on the elements of the sub-array.
1. |
The following example extracts an array of StringsRead objects from their parent, the StringReader.StringModels object array. Each string read is considered an element of the StringsRead object sub-array. So, the TOUPPER() function accesses each string stored in the StringsRead sub-array and converts it to uppercase. The FLATTEN() function finishes execution by returning an array of the extracted, uppercase strings.
FLATTEN(StringReader.StringModels, Item.StringsRead, TOUPPER(SubItem.String))
|