# std.mem: Split \`split\` and \`splitBackwards\` into 3 versions by delimiter type: full, any, and scalar · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/bda645d911fd79c5aba1f93c0877c7eb915ed709)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: bda645d911fd79c5aba1f93c0877c7eb915ed709

Requested commit: bda645d911fd79c5aba1f93c0877c7eb915ed709

Commit: bda645d911fd79c5aba1f93c0877c7eb915ed709

Tree: b7b62c37df5b7533aeef900a6899cec2c2c5447e

Author: Ryan Liptak

Committer: Ryan Liptak

## Message

```
std.mem: Split `split` and `splitBackwards` into 3 versions by delimiter type: full, any, and scalar

This allows users to choose which version they need for their particular use case, as the previous default (now the 'full' version) was (1) not always the desired type of delimiter and (2) performed worse than the scalar version if the delimiter was a single item.

```

## Parents

- [bc17b38788e173afefc6a4770e5b0610dbe44670](https://git.cafe/gitcafe/zig/commit/bc17b38788e173afefc6a4770e5b0610dbe44670?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/bda645d911fd79c5aba1f93c0877c7eb915ed709?format=markdown)
