Documentation ¶
Index ¶
- func ArrayCast[T any](source []interface{}) []T
- func ArrayConvert[T any, Y any](source []Y, convert func(item Y) T) []T
- func Average(source []float64) float64
- func If[T any](cond bool, vtrue, vfalse T) T
- func Max(source []float64) float64
- func SplitSlice[T any, Y comparable](source []T, identification func(item T) Y) (m map[Y][]T)
- func SplitString(source, delimiter string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayConvert ¶
func SplitSlice ¶
func SplitSlice[T any, Y comparable](source []T, identification func(item T) Y) (m map[Y][]T)
This function split a list based on a evaluation function the result is a map of lists
func SplitString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.