Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equivalent ¶ added in v0.2.1
func Equivalent[T comparable, E ~[]T](x, y E) bool
Equivalent compares two slices has same elements without order
func Unique ¶ added in v0.2.0
func Unique[T comparable, E ~[]T](s E) E
func UniqueKeys ¶ added in v0.2.11
func UniqueKeys[E any, S ~[]E, P comparable](s S, m func(E) P) []P
UniqueKeys collects partials P from slices S by func m
func UniqueValues ¶ added in v0.2.11
func UniqueValues[E any, S ~[]E, K comparable](s S, m func(E) K) []E
UniqueValues collects unique []E from slices S by func m
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.