package
1.0.26
Repository: https://github.com/askasoft/pango.git
Documentation: pkg.go.dev

# Functions

Anys convert slice 'sa' to []any slice.
Clip removes unused capacity from the slice, returning a[:len(a):len(a)].
Clone returns a copy of the slice.
Compact replaces consecutive runs of equal elements with a single copy.
CompactFunc is like [Compact] but uses an equality function to compare elements.
Contains reports whether the c is contained in the slice a.
ContainsFunc reports whether at least one element e of a satisfies f(e).
Delete removes the elements a[i:j] from a, returning the modified slice.
DeleteEqual removes any elements from a for which elemant == e, returning the modified slice.
DeleteFunc removes any elements from a for which del returns true, returning the modified slice.
Equal reports whether a and b are the same length and contain the same element.
EqualFunc reports whether two slices are equal using an equality function on each pair of elements.
Get get element at the specified index i.
Grow increases the slice's capacity, if necessary, to guarantee space for another n elements.
Index returns the index of the first instance of v in a, or -1 if v is not present in a.
IndexFunc returns the first index i satisfying f(a[i]), or -1 if none do.
No description provided by the author
No description provided by the author
Reverse reverses the elements of the slice in place.