diff options
| author | Kyle Coffey <mariorules24@gmail.com> | 2023-05-10 09:47:58 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-10 17:47:58 +0300 |
| commit | ebc3773542ef2bccedd268cfa42ee2cdd529210a (patch) | |
| tree | 50e816fdfcfc0206cbbe0d13d39d24de6012068f /lib/std/array_list.zig | |
| parent | 6d7bb255a45ab89e08ab1981b48898ae7e6bef88 (diff) | |
| download | zig-ebc3773542ef2bccedd268cfa42ee2cdd529210a.tar.gz zig-ebc3773542ef2bccedd268cfa42ee2cdd529210a.zip | |
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.
Diffstat (limited to 'lib/std/array_list.zig')
0 files changed, 0 insertions, 0 deletions
