Documentation
¶
Index ¶
- func Filter[V any](in iter.Seq[V], pred func(V) bool) iter.Seq[V]
- func Filter2[K, V any](in iter.Seq2[K, V], pred func(K, V) bool) iter.Seq2[K, V]
- func FromKVSlice[K, V any](slice []KV[K, V]) iter.Seq2[K, V]
- func FromMap[K comparable, V any](m map[K]V) iter.Seq2[K, V]
- func FromMapKeys[K comparable, V any](m map[K]V) iter.Seq[K]
- func FromPairs[K, V any](pairs iter.Seq[KV[K, V]]) iter.Seq2[K, V]
- func FromSlice[V any](slice []V) iter.Seq[V]
- func Grouped[K comparable, V any](in iter.Seq2[K, V]) iter.Seq2[K, iter.Seq[V]]
- func Map[Vin, Vout any](in iter.Seq[Vin], fn func(Vin) Vout) iter.Seq[Vout]
- func Map2[Kin, Vin, Kout, Vout any](in iter.Seq2[Kin, Vin], fn func(Kin, Vin) (Kout, Vout)) iter.Seq2[Kout, Vout]
- func SliceMap[Vin, Vout any](in []Vin, fn func(Vin) Vout) []Vout
- func Sorted[V cmp.Ordered](in iter.Seq[V]) iter.Seq[V]
- func Sorted2[K cmp.Ordered, V any](in iter.Seq2[K, V]) iter.Seq2[K, V]
- func ToMap[K comparable, V any](in iter.Seq2[K, V]) map[K]V
- func ToMapInsert[K comparable, V any](m map[K]V, in iter.Seq2[K, V])
- func ToPairs[K, V any](in iter.Seq2[K, V]) iter.Seq[KV[K, V]]
- func ToSlice[V any](in iter.Seq[V]) []V
- func ToSliceAppend[V any](slice []V, in iter.Seq[V]) []V
- type KV
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromMapKeys ¶
func FromMapKeys[K comparable, V any](m map[K]V) iter.Seq[K]
func ToMapInsert ¶
func ToMapInsert[K comparable, V any](m map[K]V, in iter.Seq2[K, V])
func ToSliceAppend ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.