---
title: "insert(_:for:)"
framework: coreai
role: symbol
role_heading: Instance Method
path: "coreai/inferencefunction/inputs/insert(_:for:)-5o5oi"
---

# insert(_:for:)

Inserts a typed array view as the input with the specified name.

## Declaration

```swift
mutating func insert<Element>(_ view: consuming NDArray.View<Element>, for inputName: String) where Element : BitwiseCopyable
```

## Parameters

- `view`: A typed view of the array to use as the input value.
- `inputName`: The name of the input to set.

## See Also

### Adding inputs

- [insert(_:for:)](coreai/inferencefunction/inputs/insert(_:for:)-3eg32.md)
- [insert(_:for:)](coreai/inferencefunction/inputs/insert(_:for:)-2htrp.md)
