12 lines
104 B
Go
Raw Normal View History

package util
import "cmp"
func Min[T cmp.Ordered](a, b T) T {
if a <= b {
return a
}
return b
}