Documentation
¶
Index ¶
- func Concat[T any](slices ...[]T) []T
- func Equals[T any](a, b T) bool
- func ExpectKind(v any, expected string)
- func ExpectSlice(v any)
- func Filter[F any](filterables []F, criteria func(F) bool) []F
- func HasKind(v any, expected string) bool
- func Indexes[T any](slice []T) []int
- func IsSlice(slice any) bool
- func ItemType(slice any) reflect.Kind
- func KindString(v any) string
- func Prepend[T any](slice []T, item T) []T
- func Remove[T any](slice []T, i int) []T
- func RemoveEmpty[T any](slices [][]T) [][]T
- func Reverse[T any](slice []T) []T
- func Seq(min int, max int) []int
- func Shift[T any](slice []T) []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpectKind ¶
func HasKind ¶
Return true if the kind of the value given equals the expected kind given. Else, false.
func KindString ¶
func RemoveEmpty ¶
func RemoveEmpty[T any](slices [][]T) [][]T
Remove all empty slices from the 2D slice given
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.