fn indexOfMin(comptime T: type, slice: []const T) usize

Returns the index of the smallest number in a slice. O(n). slice must not be empty.

Parameters

T: type,
slice: []const T,