---
title: "subscript(scalarAt:)"
framework: coreml
role: symbol
role_heading: Instance Subscript
path: "coreml/mlshapedarrayprotocol/subscript(scalarat:)"
---

# subscript(scalarAt:)

Accesses an element and a multidimensional location.

## Declaration

```swift
subscript<C>(scalarAt indices: C) -> Self.Scalar where C : Collection, C.Element == Int { get set }
```

## Parameters

- `indices`: An integer collection that represents a position in the shaped array in which each integer is an index in the corresponding dimension.

## See Also

### Accessing elements

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