Documentation ¶
Index ¶
- func Concat[E any](ss ...[]E) []E
- func Float64ToNumber[E Number](s []float64) []E
- func Indices[E comparable](s []E, v E) []int
- func Max[T constraints.Ordered](a, b T) T
- func Min[T constraints.Ordered](a, b T) T
- func NumberToFloat64[E Number](s []E) []float64
- func NumberToInt64[E Number](s []E) []int64
- func Range(start, end int) []int
- func Repeat[E any](s []E, n int) []E
- type Number
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float64ToNumber ¶
func Indices ¶
func Indices[E comparable](s []E, v E) []int
func Max ¶
func Max[T constraints.Ordered](a, b T) T
func Min ¶
func Min[T constraints.Ordered](a, b T) T
func NumberToFloat64 ¶
func NumberToInt64 ¶
Types ¶
type Number ¶
type Number interface { constraints.Integer | constraints.Float }
Click to show internal directories.
Click to hide internal directories.