Documentation
¶
Index ¶
- func AllZeros(s []byte) bool
- func CollectIndex[E any, S []E](s S, idxs ...int) S
- func CountNilsInTwoDimSlice[T any](s [][]T) int
- func IndexCombos(n, k int) [][]int
- func Indexes(n int) []int
- func MaxLen(s []string) int
- func NilTwoDimSliceElements[T any](s [][]T, idxs []int) [][]T
- func RepeatElement[E any, S []E](n int, e E) S
- func TwoDimSliceElementCount[E any](s [][]E) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectIndex ¶
CollectIndex returns new slice of shallows copies of s elements with given indexes.
func CountNilsInTwoDimSlice ¶
CountNilsInTwoDimSlice counts nil elements of s.
func IndexCombos ¶
IndexCombos returns all combinations of n indexes taken k.
func NilTwoDimSliceElements ¶
NilTwoDimSliceElements returns clone of ss with nil-ed given indexes.
func RepeatElement ¶
RepeatElement returns slice of n shallow copies of e.
func TwoDimSliceElementCount ¶
TwoDimSliceElementCount returns sum len for ss.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.