Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Concat ¶
func Concat[S ~[]E, E any](slices ...S) S
Concat returns a new slice concatenating the passed in slices. TODO(rfindley): use go1.22 slices.Contains.
func Contains ¶
func Contains[S ~[]E, E comparable](slice S, x E) bool
Contains reports whether x is present in slice. TODO(adonovan): use go1.19 slices.Contains.
func ContainsFunc ¶
ContainsFunc reports whether at least one element e of s satisfies f(e). TODO(adonovan): use go1.19 slices.ContainsFunc.
func Grow ¶
Grow increases the slice's capacity, if necessary, to guarantee space for another n elements. After Grow(n), at least n elements can be appended to the slice without another allocation. If n is negative or too large to allocate the memory, Grow panics. TODO(rfindley): use go1.19 slices.Grow.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.