---
title: "prefix(through:)"
framework: swift-package-manager
role: symbol
role_heading: Instance Method
path: "swift-package-manager/documentation/packageplugin/filelist/prefix(through:)"
---

# prefix(through:)

Inherited from Collection.prefix(through:).

## Declaration

```swift
func prefix(through position: Self.Index) -> Self.SubSequence
```
