Documentation ¶
Index ¶
- func Contains(container interface{}, obj interface{}) (bool, error)
- func ContainsAll(container interface{}, objs []interface{}) (bool, error)
- func ContainsAny(container interface{}, objs []interface{}) (bool, error)
- func Filter(container interface{}, objs []interface{}) (interface{}, error)
- func Join[T any](container interface{}, f func(interface{}) string, delimeter string) string
- func Map[T any](container interface{}, f func(interface{}) T) []T
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsAll ¶
func ContainsAny ¶
Types ¶
type Set ¶
type Set[T constraints.Ordered] map[T]struct{}
func MapToSet ¶
func MapToSet[T constraints.Ordered](container interface{}, f func(interface{}) T) Set[T]
Click to show internal directories.
Click to hide internal directories.