# Add std.mem.indexOfNone · gitcafe/zig

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

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

Visibility: public

Requested revision: ebc3773542ef2bccedd268cfa42ee2cdd529210a

Requested commit: ebc3773542ef2bccedd268cfa42ee2cdd529210a

Commit: ebc3773542ef2bccedd268cfa42ee2cdd529210a

Tree: 50e816fdfcfc0206cbbe0d13d39d24de6012068f

Author: Kyle Coffey

Committer: GitHub

## Message

```
Add std.mem.indexOfNone

This introduces a parallel set of functions to the std.mem.indexOfAny
functions. They simply invert the logic, yielding the first/last index
which is *not* contained in the "values" slice.

Inverting this logic is useful when you are attempting to determine the
initial span which contains only characters in a particular set.

* Document the `indexOfNone` family.

These descriptions are somewhat brief, but the functions themselves are
also simple enough to describe in such a way.
```

## Parents

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

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