Documentation ¶
Index ¶
- func Apply[A any, B any](in []A, fn func(A) B) []B
- func ApplyM[A any, B any, K comparable](in map[K]A, fn func(A) B) map[K]B
- func Filter[A any](in []A, fn func(A) bool) []A
- func FilterM[A any, K comparable](in map[K]A, fn func(A) bool) map[K]A
- func If[T any](cond bool, a T, b T) T
- func ToList[A any, K comparable](in map[K]A) []A
- func ToMap[A any, K comparable](in []A, fn func(A) K) map[K]A
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyM ¶
func ApplyM[A any, B any, K comparable](in map[K]A, fn func(A) B) map[K]B
func FilterM ¶
func FilterM[A any, K comparable](in map[K]A, fn func(A) bool) map[K]A
func ToList ¶
func ToList[A any, K comparable](in map[K]A) []A
func ToMap ¶
func ToMap[A any, K comparable](in []A, fn func(A) K) map[K]A
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.