Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cut ¶
func Cut[T comparable](i, j int, a ...T) []T
Cut removes an element from a slice at a given position.
func Delete ¶
func Delete[T comparable](i int, a ...T) []T
Delete removes an element from a slice by value.
func Filter ¶ added in v0.5.8
func Filter[T comparable](f func(T) bool, a ...T) []T
Filter removes all elements from a slice that satisfy a predicate.
func Insert ¶
func Insert[T comparable](x T, idx int, a ...T) []T
Insert adds an element at a given position in a slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.