Documentation
¶
Index ¶
- func Column[V any, K any](vList []V, f func(V) K) []K
- func GroupBy[V any, K comparable](vList []V, f func(V) K) map[K]V
- func GroupListBy[V any, K comparable](vList []V, f func(V) K) map[K][]V
- func Implode[K any](separator string, elementList []K) string
- func In[V comparable](v V, vList []V) bool
- func InDeep[V any](v V, vList []V) bool
- func Unique[V comparable](vList []V) []V
- func UniqueDeep[V any](vList []V) []V
- type List
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GroupBy ¶
func GroupBy[V any, K comparable](vList []V, f func(V) K) map[K]V
func GroupListBy ¶
func GroupListBy[V any, K comparable](vList []V, f func(V) K) map[K][]V
func In ¶
func In[V comparable](v V, vList []V) bool
func Unique ¶
func Unique[V comparable](vList []V) []V
func UniqueDeep ¶
func UniqueDeep[V any](vList []V) []V
Types ¶
Click to show internal directories.
Click to hide internal directories.