示例#1
0
func min(xs []float64) float64 {
	return functional.Fold(math.Min, xs)
}
示例#2
0
func max(xs []float64) float64 {
	return functional.Fold(math.Max, xs)
}