Documentation ¶
Index ¶
- func Clone[T any](s []T) []T
- func Contains[T comparable](s []T, x T) bool
- func Delete[T comparable](s []T, x T) []T
- func DeleteAt[T any](s []T, i int) []T
- func Index[T comparable](s []T, x T) int
- func IndexFunc[T comparable](s []T, f func(x T) bool) int
- func InsertAt[T any](s []T, x T, i int) []T
- func Move[T any](s []T, from, to int) []T
- func Sort[T constraints.Ordered](s []T)
- func SortFunc[T any](slice []T, less func(a, b T) bool)
- func SortStableFunc[T any](s []T, less func(a, b T) bool)
- func Swap[T any](s []T, i, j int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable](s []T, x T) bool
func Delete ¶
func Delete[T comparable](s []T, x T) []T
func Index ¶
func Index[T comparable](s []T, x T) int
func IndexFunc ¶
func IndexFunc[T comparable](s []T, f func(x T) bool) int
func Sort ¶
func Sort[T constraints.Ordered](s []T)
func SortStableFunc ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.