Documentation
¶
Index ¶
- func At[K cmp.Ordered, V any](m map[K]V, index int) (V, error)
- func Contains[K comparable, V any](m map[K]V, f func(key K, val V) bool) bool
- func ContainsKey[K comparable, V any](m map[K]V, keys ...K) bool
- func Convert[K comparable, V1 any, V2 any](m map[K]V1, f func(key K, val V1) (V2, error)) map[K]V2
- func CountFunc[K comparable, V any](m map[K]V, f func(key K, val V) bool) int
- func Delete[K comparable, V any](m map[K]V, f func(k K, v V) bool) int
- func ExistsFunc[K comparable, V any](m map[K]V, f func(key K, val V) bool) bool
- func First[K cmp.Ordered, V any](m map[K]V) (V, error)
- func Flatten[K cmp.Ordered, V any](m map[K]V) []any
- func FlattenSeq[K comparable, V any](m iter.Seq2[K, V]) iter.Seq[any]
- func Join[K cmp.Ordered, V any](m map[K]V, sep string) string
- func Last[K cmp.Ordered, V any](m map[K]V) (V, error)
- func Remap[K1 comparable, V1 any, K2 comparable, V2 any](m map[K1]V1, f func(key K1, val V1) (K2, V2, error)) map[K2]V2
- func RemapFuncSeq[K1 comparable, V1 any, K2 comparable, V2 any](m iter.Seq2[K1, V1], f func(key K1, val V1) (K2, V2, error)) iter.Seq2[K2, V2]
- func Select[K comparable, V any](m map[K]V, f func(key K, val V) bool) map[K]V
- func Slice[Map ~map[K]V, K comparable, V any, S any](m Map, f func(key K, val V) (*S, error)) []S
- func SliceFuncSeq[K comparable, V any, R any](m iter.Seq2[K, V], f func(key K, val V) (*R, error)) iter.Seq[R]
- func Summarize[K cmp.Ordered, V any, M ~map[K]V, S cmp.Ordered](m M, f func(key K, val V) S) S
- func WeightFuncSeq[K comparable, V any, S cmp.Ordered](m iter.Seq2[K, V], f func(key K, val V) S) iter.Seq[S]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsKey ¶
func ContainsKey[K comparable, V any](m map[K]V, keys ...K) bool
func Convert ¶
func Convert[K comparable, V1 any, V2 any](m map[K]V1, f func(key K, val V1) (V2, error)) map[K]V2
func ExistsFunc ¶
func ExistsFunc[K comparable, V any](m map[K]V, f func(key K, val V) bool) bool
func FlattenSeq ¶ added in v1.1.0
func Remap ¶
func Remap[K1 comparable, V1 any, K2 comparable, V2 any](m map[K1]V1, f func(key K1, val V1) (K2, V2, error)) map[K2]V2
func RemapFuncSeq ¶
func RemapFuncSeq[K1 comparable, V1 any, K2 comparable, V2 any](m iter.Seq2[K1, V1], f func(key K1, val V1) (K2, V2, error)) iter.Seq2[K2, V2]
func Select ¶
func Select[K comparable, V any](m map[K]V, f func(key K, val V) bool) map[K]V
func Slice ¶
func Slice[Map ~map[K]V, K comparable, V any, S any](m Map, f func(key K, val V) (*S, error)) []S
func SliceFuncSeq ¶
func WeightFuncSeq ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.