Documentation ¶
Index ¶
- func Collect[V any](iter Iter[V]) (vs []V)
- func Count[V any](iter Iter[V]) (count int)
- func ForEach[V any](action func(v V), iter Iter[V])
- func Reduce[V, R any](reducer func(cur R, v V) R, init R, iter Iter[V]) R
- type Iter
- func Chan[E any, CH ~chan E | ~<-chan E](ch CH) Iter[E]
- func ChanCaches[E any, CH ~chan E | ~<-chan E](ch CH) Iter[E]
- func CharEntries(s string) Iter[strings.CharEntry]
- func Chars(s string) Iter[byte]
- func Concat[V any](is ...Iter[V]) Iter[V]
- func Filter[V any](filter func(V) bool, iter Iter[V]) Iter[V]
- func Keys[K comparable, V any](m map[K]V) Iter[K]
- func Limit[V any](limit int, iter Iter[V]) Iter[V]
- func Map[I, O any](mapper func(I) O, iter Iter[I]) Iter[O]
- func MapEntries[K comparable, V any](m map[K]V) Iter[maps.Entry[K, V]]
- func Range[I generic.Integer](size I) Iter[I]
- func RuneEntries(s string) Iter[strings.RuneEntry]
- func Runes(s string) Iter[rune]
- func Skip[V any](skip int, iter Iter[V]) Iter[V]
- func Slice[E any](s []E) Iter[E]
- func SliceEntries[E any](s []E) Iter[slice.Entry[E]]
- func SliceP[E any](s []E) Iter[*E]
- func SlicePEntries[E any](s []E) Iter[slice.Entry[*E]]
- func Values[K comparable, V any](m map[K]V) Iter[V]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Iter ¶
func ChanCaches ¶
func Keys ¶
func Keys[K comparable, V any](m map[K]V) Iter[K]
func MapEntries ¶
func MapEntries[K comparable, V any](m map[K]V) Iter[maps.Entry[K, V]]
func Values ¶
func Values[K comparable, V any](m map[K]V) Iter[V]
Click to show internal directories.
Click to hide internal directories.