# split

`import { split } from "destack:bytes";`

Split bytes around `separator`.

```ds title="split"
export function split(bytes: &'a readonly [uint8], separator: &'b readonly [uint8]): Iterator<Bytes, void>
```

[language/library/src/bytes/bytes.ds:206:208](https://github.com/destack-sh/destack/blob/main/language/library/src/bytes/bytes.ds#L206-L208)
