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)
- func DeleteAt[T any](s *[]T, i int)
- func DeleteFunc[T any](s *[]T, f func(x T) bool)
- func FilterInplace[T any](s []T, f func(x T) bool) []T
- func Find[T comparable](s []T, x T) (result T)
- func FindFunc[T comparable](s []T, f func(x T) bool) (result T)
- func Index[T comparable](s []T, x T) int
- func IndexFunc[T any](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 Pop[T any](s *[]T) T
- func Push[T any](s *[]T, x 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)
- func Transfer[T comparable](from, to *[]T, x T)
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)
func DeleteFunc ¶
func FilterInplace ¶
func Find ¶
func Find[T comparable](s []T, x T) (result T)
func FindFunc ¶
func FindFunc[T comparable](s []T, f func(x T) bool) (result T)
func Index ¶
func Index[T comparable](s []T, x T) int
func Sort ¶
func Sort[T constraints.Ordered](s []T)
func SortStableFunc ¶
func Transfer ¶
func Transfer[T comparable](from, to *[]T, x T)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.