Пример #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)
}