---
title: "buildArray(_:)"
framework: speech
role: symbol
role_heading: Type Method
path: "speech/sfcustomlanguagemodeldata/datainsertablebuilder/buildarray(_:)"
---

# buildArray(_:)

Enables support for for..in loops.

## Declaration

```swift
static func buildArray(_ components: [any DataInsertable]) -> any DataInsertable
```

## See Also

### Result builder methods

- [buildBlock(_:)](speech/sfcustomlanguagemodeldata/datainsertablebuilder/buildblock(_:).md)
- [buildEither(first:)](speech/sfcustomlanguagemodeldata/datainsertablebuilder/buildeither(first:).md)
- [buildEither(second:)](speech/sfcustomlanguagemodeldata/datainsertablebuilder/buildeither(second:).md)
- [buildOptional(_:)](speech/sfcustomlanguagemodeldata/datainsertablebuilder/buildoptional(_:).md)
