---
title: "split(maxSplits:omittingEmptySubsequences:whereSeparator:)"
framework: swift-package-manager
role: symbol
role_heading: Instance Method
path: "swift-package-manager/documentation/packageplugin/filelist/split(maxsplits:omittingemptysubsequences:whereseparator:)"
---

# split(maxSplits:omittingEmptySubsequences:whereSeparator:)

Inherited from Sequence.split(maxSplits:omittingEmptySubsequences:whereSeparator:).

## Declaration

```swift
func split(maxSplits: Int = Int.max, omittingEmptySubsequences: Bool = true, whereSeparator isSeparator: (Self.Element) throws -> Bool) rethrows -> [ArraySlice<Self.Element>]
```
