# Add std.mem.minMax\(\) and std.mem.IndexOfMinMax\(\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 100b8a244cdbcd16669e6b81ab82d6a628559e22

Requested commit: 100b8a244cdbcd16669e6b81ab82d6a628559e22

Commit: 100b8a244cdbcd16669e6b81ab82d6a628559e22

Tree: 9ceea7c580e5457487e129c237ef472db65f33ab

Author: Mikhail Popov

Committer: Veikka Tuominen

## Message

```
Add std.mem.minMax() and std.mem.IndexOfMinMax()

For finding the minimum and maximum values (and indices)
in a slice in a single pass.

```

## Parents

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

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