Documentation
¶
Index ¶
- func Contains[S ~[]E, E cmp.Ordered](whole, part S) bool
- func ContainsWith[S ~[]E, E any](whole, part S, compare func(E, E) int) bool
- func DuplicateIndex[S ~[]E, E cmp.Ordered](slice S) int
- func DuplicateIndexWith[S ~[]E, E any](slice S, compare func(E, E) int) int
- func DuplicateIndexes[S ~[]E, E cmp.Ordered](slice S) []int
- func DuplicateIndexesWith[S ~[]E, E any](slice S, compare func(E, E) int) []int
- func Intersection[S ~[]E, E cmp.Ordered](self, other S) (S, S)
- func IntersectionWith[TS ~[]T, T any, US ~[]U, U any](self TS, other US, compare func(T, U) int) (TS, US)
- func IntersectionXor[S ~[]E, E cmp.Ordered](self, other S) (S, S, S, S)
- func IntersectionXorWith[TS ~[]T, T any, US ~[]U, U any](self TS, other US, compare func(T, U) int) (TS, TS, US, US)
- func Union[S ~[]E, E cmp.Ordered](self, other S) S
- func UnionWith[S ~[]E, E any](self, other S, compare func(E, E) int) S
- func Xor[S ~[]E, E cmp.Ordered](self S, other S) (S, S)
- func XorWith[TS ~[]T, T any, US ~[]U, U any](self TS, other US, compare func(T, U) int) (TS, US)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsWith ¶ added in v1.2.0
func DuplicateIndex ¶ added in v1.2.0
func DuplicateIndexWith ¶ added in v1.2.0
func DuplicateIndexes ¶ added in v1.2.0
func DuplicateIndexesWith ¶ added in v1.2.0
func Intersection ¶ added in v1.2.0
func IntersectionWith ¶ added in v1.2.0
func IntersectionXor ¶ added in v1.2.0
func IntersectionXorWith ¶ added in v1.2.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.