Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exclude ¶ added in v1.14.0
func Exclude[S ~[]E, E comparable](s S, toExclude []E) iter.Seq[E]
Exclude returns an iterator that yields the slice elements in order, excluding the elements in toExclude.
func RemoveFirst ¶ added in v1.12.0
func RemoveFirst[S ~[]E, E any](s S) []E
RemoveFirst removes the first element from the given slice and returns the resulting slice. If the slice is empty, it returns an empty slice.
func RemoveFirstN ¶ added in v1.12.0
RemoveFirstN removes the first "n" elements from the given slice and returns the resulting slice. If the slice is empty or "n" is larger than the length of the slice, it returns an empty slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.