Documentation
¶
Index ¶
- func All[T any](it iter.Seq[T], predicate func(T) bool) bool
- func Any[T any](it iter.Seq[T], predicate func(T) bool) bool
- func Chain[T any](its ...iter.Seq[T]) iter.Seq[T]
- func Chain2[K, V any](its ...iter.Seq2[K, V]) iter.Seq2[K, V]
- func Dump[T any](it iter.Seq[T], capHint ...int) []T
- func Dump2[K, V any](it iter.Seq2[K, V], capHint ...int) []lo.Tuple2[K, V]
- func Enumerate[T any](it iter.Seq[T]) iter.Seq2[int, T]
- func Filter[T any](it iter.Seq[T], pred func(T) bool) iter.Seq[T]
- func Filter2[K, V any](it iter.Seq2[K, V], pred func(K, V) bool) iter.Seq2[K, V]
- func Keys[K, V any](it iter.Seq2[K, V]) iter.Seq[K]
- func Map[T, R any](it iter.Seq[T], f func(T) R) iter.Seq[R]
- func Map2[T1, T2, R1, R2 any](it iter.Seq2[T1, T2], f func(T1, T2) (R1, R2)) iter.Seq2[R1, R2]
- func Noop[T any](_ func(T) bool)
- func Noop2[K, V any](_ func(K, V) bool)
- func Static[T any](v T) iter.Seq[T]
- func Static2[K, V any](k K, v V) iter.Seq2[K, V]
- func Values[K, V any](it iter.Seq2[K, V]) iter.Seq[V]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func All ¶ added in v0.2.13
All is like all in python, return if all elements in the slice satisfy the predicate.
func Any ¶ added in v0.2.13
Any is like any in python, return if any element in the slice satisfy the predicate.
func Enumerate ¶
Enumerate is like enumerate in python convert's an iter.Seq into an iter.Seq2 by its index
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.