Documentation ¶
Index ¶
- func ContainsFloat(haystack []float64, needle float64) bool
- func ContainsInt(haystack []int, needle int) bool
- func ContainsString(haystack []string, needle string) bool
- func IntToString(in []int) []string
- func MedianFloats(in []float64) float64
- func MedianInts(in []int) int
- func StringToInt(in []string) []int
- func SumFloats(in []float64) float64
- func SumInts(in []int) int
- func UniqueInt(in []int) []int
- func UniqueString(in []string, allowEmpty bool) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsFloat ¶
ContainsFloat returns true if float needle is an element in float slice haystack
func ContainsInt ¶
ContainsInt returns true if int needle is an element in int slice haystack
func ContainsString ¶
ContainsString returns true if string needle is an element in string slice haystack
func IntToString ¶ added in v1.1.15
IntToString takes a slice of int and returns a slice of string.
func MedianFloats ¶
MedianFloats gets the median number in the given slice of float64.
func MedianInts ¶
MedianInts gets the median number in the given slice of ints.
func StringToInt ¶
StringToInt takes a slice of string and returns a slice of int.
func UniqueString ¶
UniqueString takes a slice of string and returns a slice with only unique elements.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.