---
title: "relative(toShapedArrayAxis:)"
framework: coreml
role: symbol
role_heading: Instance Method
path: "coreml/mlshapedarrayrangeexpression/relative(toshapedarrayaxis:)"
---

# relative(toShapedArrayAxis:)

Returns the range of indices the range expression describes within a collection.

## Declaration

```swift
func relative(toShapedArrayAxis range: Range<Int>) -> Range<Int>
```

## Parameters

- `range`: An integer range.
