Documentation ¶
Index ¶
- func ColumnF[T comparable, V comparable](s []T, fn func(T) V) []V
- func Concatenate[T any](s []T, objs ...[]T) []T
- func Contains[T comparable](slices []T, values ...T) bool
- func Filter[T any](slice []T, fun func(item T) bool) []T
- func IndexF[T comparable](s []T, fn func(T) string) map[string]T
- func Merge[T comparable](s []T, ts ...T) []T
- func Pluck[T any, V comparable](s []T, getValue func(item T) V) []V
- func Remove[T comparable](slices []T, ts ...T) []T
- func UniqueF[T comparable](s []T, fn func(T) string) []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColumnF ¶
func ColumnF[T comparable, V comparable](s []T, fn func(T) V) []V
func Concatenate ¶
func Concatenate[T any](s []T, objs ...[]T) []T
func Contains ¶
func Contains[T comparable](slices []T, values ...T) bool
Contains checks if str is in list.
func IndexF ¶
func IndexF[T comparable](s []T, fn func(T) string) map[string]T
func Merge ¶
func Merge[T comparable](s []T, ts ...T) []T
func Pluck ¶
func Pluck[T any, V comparable](s []T, getValue func(item T) V) []V
func Remove ¶
func Remove[T comparable](slices []T, ts ...T) []T
Remove removes given strs from strings.
func UniqueF ¶
func UniqueF[T comparable](s []T, fn func(T) string) []T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.