---
title: "index(atPosition:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsindexpath/index(atposition:)"
---

# index(atPosition:)

Provides the value at a particular node in the index path.

## Declaration

```swift
func index(atPosition position: Int) -> Int
```

## Parameters

- `position`: Index value of the desired node. Node numbering starts at zero.

## Return Value

Return Value The index value at node or NSNotFound if the node is outside the range of the index path.

## See Also

### Working with Indexes

- [getIndexes(_:range:)](foundation/nsindexpath/getindexes(_:range:).md)
- [getIndexes(_:)](foundation/nsindexpath/getindexes(_:).md)
