Documentation ¶
Index ¶
- func Append[M ~map[K]V, K comparable, V any](m M, items map[K]V) map[K]V
- func Exists[M ~map[K]V, K comparable, V any](m M, key K) bool
- func ExistsAll[M ~map[K]V, K comparable, V any](m M, keys ...K) bool
- func ExistsAny[M ~map[K]V, K comparable, V any](m M, keys ...K) bool
- func ExistsFunc[M ~map[K]V, K comparable, V any](m M, fn func(K, V) bool) bool
- func FilterFunc[M ~map[K]V, K comparable, V any](m M, fn func(K, V) bool) map[K]V
- func FilterKeys[M ~map[K]V, K comparable, V any](m M, keys ...K) map[K]V
- func FilterValues[M ~map[K]V, K, V comparable](m M, values ...V) map[K]V
- func FromSliceFunc[S ~[]E, E comparable, R any](s S, fn func(E) R) map[E]R
- func Merge[M ~map[K]V, K comparable, V any](maps ...M) map[K]V
- func SortedKeys[M ~map[K]V, K constraints.Ordered, V any](m M) []K
- func SortedKeysAndValues[M ~map[K]V, K constraints.Ordered, V any](m M) ([]K, []V)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Append ¶ added in v0.1.2
func Append[M ~map[K]V, K comparable, V any](m M, items map[K]V) map[K]V
func Exists ¶ added in v0.1.2
func Exists[M ~map[K]V, K comparable, V any](m M, key K) bool
func ExistsAll ¶ added in v0.1.2
func ExistsAll[M ~map[K]V, K comparable, V any](m M, keys ...K) bool
func ExistsAny ¶ added in v0.1.2
func ExistsAny[M ~map[K]V, K comparable, V any](m M, keys ...K) bool
func ExistsFunc ¶ added in v0.1.2
func ExistsFunc[M ~map[K]V, K comparable, V any](m M, fn func(K, V) bool) bool
func FilterFunc ¶ added in v0.1.2
func FilterFunc[M ~map[K]V, K comparable, V any](m M, fn func(K, V) bool) map[K]V
func FilterKeys ¶ added in v0.1.2
func FilterKeys[M ~map[K]V, K comparable, V any](m M, keys ...K) map[K]V
func FilterValues ¶ added in v0.1.2
func FilterValues[M ~map[K]V, K, V comparable](m M, values ...V) map[K]V
func FromSliceFunc ¶
func FromSliceFunc[S ~[]E, E comparable, R any](s S, fn func(E) R) map[E]R
func Merge ¶ added in v0.1.2
func Merge[M ~map[K]V, K comparable, V any](maps ...M) map[K]V
func SortedKeys ¶
func SortedKeys[M ~map[K]V, K constraints.Ordered, V any](m M) []K
func SortedKeysAndValues ¶ added in v0.1.1
func SortedKeysAndValues[M ~map[K]V, K constraints.Ordered, V any](m M) ([]K, []V)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.