slices

package
v2.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clone

func Clone[S ~[]E, E any](s S) S

func CompareFunc

func CompareFunc[S1 ~[]E1, S2 ~[]E2, E1, E2 any](s1 S1, s2 S2, cmp func(E1, E2) int) int

func Contains

func Contains[S ~[]E, E comparable](s S, v E) bool

func ContainsFunc

func ContainsFunc[S ~[]E, E any](s S, f func(E) bool) bool

func Delete

func Delete[S ~[]E, E any](s S, i, j int) S

func DeleteFunc

func DeleteFunc[S ~[]E, E any](s S, del func(E) bool) S

func Index

func Index[S ~[]E, E comparable](s S, v E) int

func IndexFunc

func IndexFunc[S ~[]E, E any](s S, f func(E) bool) int

func IsSortedFunc

func IsSortedFunc[S ~[]E, E any](x S, cmp func(a, b E) int) bool

func SortFunc

func SortFunc[S ~[]E, E any](x S, cmp func(a, b E) int)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL