fn minMax(comptime T: type, slice: []const T) struct { min: T, max: T, }
Finds the smallest and largest number in a slice. O(n). Returns an anonymous struct with the fields min and max. slice must not be empty.
min
max
slice
T: type,
slice: []const T,