Documentation
¶
Index ¶
- func All[T any](seq iter.Seq[T], predicate Predicate[T]) bool
- func All2[K, V any](seq iter.Seq2[K, V], predicate Predicate2[K, V]) bool
- func Any[T any](seq iter.Seq[T], predicate Predicate[T]) bool
- func Any2[K, V any](seq iter.Seq2[K, V], predicate Predicate2[K, V]) bool
- func Chunk[T any](seq iter.Seq[T], n int) iter.Seq[[]T]
- func Chunk2[T any](seq iter.Seq[T]) iter.Seq2[T, T]
- func CollectOrError[T any](seq iter.Seq2[T, error]) ([]T, error)
- func CollectOrJoinError[T any](seq iter.Seq2[T, error]) (result []T, err error)
- func Empty[T any](seq iter.Seq[T]) bool
- func Empty2[K, V any](seq iter.Seq2[K, V]) bool
- func Enumerate[T any](seq iter.Seq[T]) iter.Seq2[int, T]
- func Filter[T any](seq iter.Seq[T], predicate Predicate[T]) iter.Seq[T]
- func Filter2[K, V any](seq iter.Seq2[K, V], predicate Predicate2[K, V]) iter.Seq2[K, V]
- func Foreach[T any](seq iter.Seq[T], fn func(T))
- func Foreach2[K, V any](seq iter.Seq2[K, V], fn func(K, V))
- func From[T any](its Its[T]) iter.Seq[T]
- func From2[K, V any](its Its2[K, V]) iter.Seq2[K, V]
- func Map[T, U any](seq iter.Seq[T], fn MapFunc[T, U]) iter.Seq[U]
- func Map12[T, K, V any](seq iter.Seq[T], fn Map12Func[T, K, V]) iter.Seq2[K, V]
- func Map21[K, V, T any](seq iter.Seq2[K, V], fn Map21Func[K, V, T]) iter.Seq[T]
- func Map22[T, U, K, V any](seq iter.Seq2[T, U], fn Map22Func[T, U, K, V]) iter.Seq2[K, V]
- func Range(n int) iter.Seq[int]
- func Reduce[T, U any](seq iter.Seq[T], acc U, fn ReduceFunc[T, U]) U
- func Reduce2[K, V, T any](seq iter.Seq2[K, V], acc T, fn Reduce2Func[K, V, T]) T
- func Reduce2WithError[K, V, T any](seq iter.Seq2[K, V], acc T, fn Reduce2WithErrorFunc[K, V, T]) (T, error)
- func ReduceWithError[T, U any](seq iter.Seq2[T, error], acc U, fn ReduceWithErrorFunc[T, U]) (U, error)
- func Window[T any](seq iter.Seq[T], n int) iter.Seq[[]T]
- func Window2[T any](seq iter.Seq[T]) iter.Seq2[T, T]
- func Zip[T, U any](seq1 iter.Seq[T], seq2 iter.Seq[U]) iter.Seq2[T, U]
- type Its
- type Its2
- type Map12Func
- type Map21Func
- type Map22Func
- type MapFunc
- type Predicate
- type Predicate2
- type Reduce2Func
- type Reduce2WithErrorFunc
- type ReduceFunc
- type ReduceWithErrorFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectOrJoinError ¶
func Reduce2WithError ¶
func Reduce2WithError[K, V, T any](seq iter.Seq2[K, V], acc T, fn Reduce2WithErrorFunc[K, V, T]) (T, error)
func ReduceWithError ¶
Types ¶
type Predicate2 ¶
type Reduce2Func ¶
type Reduce2Func[K, V, T any] = func(acc T, k K, v V) T
type Reduce2WithErrorFunc ¶
type ReduceFunc ¶
type ReduceFunc[T, U any] = func(acc U, v T) U
type ReduceWithErrorFunc ¶
Click to show internal directories.
Click to hide internal directories.