Documentation ¶
Index ¶
- func ContainsAll[S ~[]E, E comparable](super S, sub S) bool
- func Equal[S ~[]E, E constraints.Ordered](left S, right S) bool
- func InplaceTake[T any](slice []T, predicate []bool) []T
- func SliceDeDup[S ~[]E, E constraints.Ordered](s S) S
- func SortMapKeyForDeterminism[k constraints.Ordered, v any](m map[k]v) []k
- func Subtraction[S ~[]E, E comparable](a S, b S) S
- func Take[T any](slice []T, predicate []bool) []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsAll ¶
func ContainsAll[S ~[]E, E comparable](super S, sub S) bool
Contains reports whether all elements in sub are present in super.
func Equal ¶
func Equal[S ~[]E, E constraints.Ordered](left S, right S) bool
func InplaceTake ¶
please ensure len(slice) <= len(predicate) before calling this function.
func SliceDeDup ¶
func SliceDeDup[S ~[]E, E constraints.Ordered](s S) S
func SortMapKeyForDeterminism ¶
func SortMapKeyForDeterminism[k constraints.Ordered, v any](m map[k]v) []k
func Subtraction ¶
func Subtraction[S ~[]E, E comparable](a S, b S) S
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.