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

# insert(_:for:)

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

## Declaration

```swift
mutating func insert(_ rawView: consuming NDArray.RawView, for inputName: String)
```

## Parameters

- `rawView`: A raw 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:)-2htrp.md)
- [insert(_:for:)](coreai/inferencefunction/inputs/insert(_:for:)-5o5oi.md)
