_list

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Column

func Column[V any, K any](vList []V, f func(V) K) []K

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 Implode

func Implode[K any](separator string, elementList []K) string

func In

func In[V comparable](v V, vList []V) bool

func InDeep

func InDeep[V any](v V, vList []V) bool

func Unique

func Unique[V comparable](vList []V) []V

func UniqueDeep

func UniqueDeep[V any](vList []V) []V

Types

type List

type List interface {
	string | int8 | int16 | int32 | int64 | int | uint8 | uint16 | uint32 | uint64 | uint | float32 | float64 | bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL