Documentation ¶
Index ¶
- func EveryNil(elems ...any) bool
- func Pull[V comparable](collection []V, elements ...V) []V
- func PullAt[V any](collection []V, indices ...int) []V
- func Remove[V comparable](collection []V, predicate func(V, int) bool) []V
- func SomeNil(elems ...any) bool
- func Split[T comparable](collection []T, isSeparator func(T, int) bool) [][]T
- func SplitStr(str string, separators ...rune) []string
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Remove ¶
func Remove[V comparable](collection []V, predicate func(V, int) bool) []V
Remove 根据断言删除.
func Split ¶
func Split[T comparable](collection []T, isSeparator func(T, int) bool) [][]T
Split 切片分解.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.