Documentation
¶
Index ¶
- func Difference[T comparable](first []T, second []T) []T
- func ExtractMapValues[TKey comparable, TValue any](m map[TKey]TValue) []TValue
- func Filter[In any](in []In, d func(i In) (bool, error)) ([]In, error)
- func Flatten[TValue any](in [][]TValue) []TValue
- func IndexOf[T comparable](collection []T, item T) int
- func JoinToCamelCase(stringSlice []string) string
- func Map[In any, Out any](in []In, d Mapper[In, Out]) ([]Out, error)
- func MustFilter[In any](in []In, d func(i In) bool) []In
- func MustMap[In any, Out any](in []In, d func(i In) Out) []Out
- type Enumerable
- type Mapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Difference ¶
func Difference[T comparable](first []T, second []T) []T
func ExtractMapValues ¶
func ExtractMapValues[TKey comparable, TValue any](m map[TKey]TValue) []TValue
func IndexOf ¶
func IndexOf[T comparable](collection []T, item T) int
func JoinToCamelCase ¶
func MustFilter ¶
Types ¶
type Enumerable ¶
type Enumerable[T comparable] []T
func (Enumerable[T]) Filter ¶
func (e Enumerable[T]) Filter(d func(i T) bool) Enumerable[T]
func (Enumerable[T]) IndexOf ¶
func (e Enumerable[T]) IndexOf(item T) int
func (Enumerable[T]) Slice ¶
func (e Enumerable[T]) Slice() []T
Click to show internal directories.
Click to hide internal directories.