---
title: "fill(with:)"
framework: coreml
role: symbol
role_heading: Instance Method
path: "coreml/mlshapedarrayprotocol/fill(with:)"
---

# fill(with:)

Fills the array with a value.

## Declaration

```swift
mutating func fill(with value: Self.Scalar)
```

## Parameters

- `value`: The filling value

## See Also

### Modifying a shaped array type

- [withUnsafeMutableShapedBufferPointer(_:)](coreml/mlshapedarrayprotocol/withunsafemutableshapedbufferpointer(_:).md)
