Documentation
¶
Index ¶
- func All[T any](it iter.Seq[T], pred func(T) bool) bool
- func All2[K any, V any](it iter.Seq2[K, V], pred func(K, V) bool) bool
- func Any[T any](it iter.Seq[T], pred func(T) bool) bool
- func Any2[K any, V any](it iter.Seq2[K, V], pred func(K, V) bool) bool
- func Count[T any](it iter.Seq[T]) int
- func Count2[K any, V any](it iter.Seq2[K, V]) int
- func Filter[T any](it iter.Seq[T], pred func(T) bool) iter.Seq[T]
- func Filter2[K any, V any](it iter.Seq2[K, V], pred func(K, V) bool) iter.Seq2[K, V]
- func Find[T any](it iter.Seq[T], pred func(T) bool) (T, error)
- func Find2[K any, V any](it iter.Seq2[K, V], pred func(K, V) bool) (K, V, error)
- func Map[T, R any](it iter.Seq[T], fn func(T) R) iter.Seq[R]
- func Map2[K, V, R any](it iter.Seq2[K, V], fn func(K, V) R) iter.Seq[R]
- func Reduce[A any, T any](it iter.Seq[T], fn func(A, T) A, init A) A
- func Reduce2[A any, K any, V any](it iter.Seq2[K, V], fn func(A, K, V) A, init A) A
- func Reverse[T any](it iter.Seq[T]) iter.Seq[T]
- func Reverse2[K any, V any](it iter.Seq2[K, V]) iter.Seq2[K, V]
- func Skip[T any](it iter.Seq[T], n int) iter.Seq[T]
- func Skip2[K any, V any](it iter.Seq2[K, V], n int) iter.Seq2[K, V]
- func Take[T any](it iter.Seq[T], n int) iter.Seq[T]
- func Take2[K any, V any](it iter.Seq2[K, V], n int) iter.Seq2[K, V]
- func Zip[T1, T2 any](it1 iter.Seq[T1], it2 iter.Seq[T2]) iter.Seq2[T1, T2]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Filter ¶
Filter returns a new sequence containing only the elements that satisfy the predicate.
func Filter2 ¶
Filter2 returns a new sequence containing only the key-value pairs that satisfy the predicate.
func Map ¶
Map returns a new sequence containing the results of applying the function to each element.
func Map2 ¶
Map2 returns a new sequence containing the results of applying the function to each key-value pair.
func Reduce ¶
Reduce applies a function cumulatively to the elements of the sequence, reducing it to a single value.
func Reduce2 ¶
Reduce2 applies a function cumulatively to the key-value pairs of the sequence, reducing it to a single value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.