Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CenteredAvg ¶
CenteredAvg computes the average of a list of numbers after removing the largest and smallest values.
Example ¶
package main import ( "fmt" "github.com/preslavmihaylov/learn-golang/ninja-level-13/ex03/mymath" ) func main() { fmt.Println(mymath.CenteredAvg([]int{1, 2, 3, 4, 5, 6})) }
Output: 3.5
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.