Versions in this module Expand all Collapse all v2 v2.0.0 Jul 12, 2023 Changes in this version + func BinarySearch(x []E, target E) (int, bool) + func Clip(s S) S + func Clone(s S) S + func Compact(s S) S + func CompactFunc(s S, eq func(E, E) bool) S + func Compare(s1, s2 S) int + func CompareFunc(s1 S1, s2 S2, cmp func(E1, E2) int) int + func Contains(s S, v E) bool + func ContainsFunc(s S, f func(E) bool) bool + func Delete(s S, i, j int) S + func DeleteFunc(s S, del func(E) bool) S + func Equal(s1, s2 S) bool + func EqualFunc(s1 S1, s2 S2, eq func(E1, E2) bool) bool + func Grow(s S, n int) S + func Index(s S, v E) int + func IndexFunc(s S, f func(E) bool) int + func Insert(s S, i int, v ...E) S + func IsSorted(list []E) bool + func Max(list []E) E + func Min(list []E) E + func Replace(s S, i, j int, v ...E) S + func Reverse(s S) + func Sort(list []E) + func SortStable(list []E) + type Order struct + Less func(a, b E) bool + RefLess func(a, b *E) bool + func (od *Order[E]) BinarySearch(list []E, target E) (int, bool) + func (od *Order[E]) IsSorted(list []E) bool + func (od *Order[E]) Max(list []E) E + func (od *Order[E]) Min(list []E) E + func (od *Order[E]) Sort(list []E) + func (od *Order[E]) SortStable(list []E) + func (od *Order[E]) SortWithOption(list []E, stable, inplace bool) Other modules containing this package github.com/peterrk/slices