Documentation ¶
Index ¶
- func All[T any](it Iterator[T], pred func(v T) bool) bool
- func Any[T any](it Iterator[T], pred func(v T) bool) bool
- func Reduce[T, U any](it Iterator[T], init U, fn func(acc U, v T) U) U
- func ToMap[K comparable, V any](it Iterator[Pair[K, V]]) map[K]V
- func ToSlice[T any](it Iterator[T]) []T
- func TryMap[K comparable, V any](it Iterator[Result[Pair[K, V]]]) (map[K]V, error)
- func TrySlice[T any](it Iterator[Result[T]]) ([]T, error)
- type Iterator
- func Concat[T any](iters ...Iterator[T]) Iterator[T]
- func ConcatMany[T any](iters Iterator[Iterator[T]]) Iterator[T]
- func Empty[T any]() Iterator[T]
- func FMap[T, U any](it Iterator[T], fn func(v T) (U, bool)) Iterator[U]
- func Filter[T any](it Iterator[T], fn func(v T) bool) Iterator[T]
- func IterList[T any](ts List[T]) Iterator[T]
- func IterMap[K comparable, V any](m map[K]V) Iterator[Pair[K, V]]
- func IterSet[T comparable](s Set[T]) Iterator[T]
- func IterSlice[T any](ts []T) Iterator[T]
- func Map[T, U any](it Iterator[T], fn func(v T) U) Iterator[U]
- func MinRange(min int) Iterator[int]
- func OfType[T, U any](it Iterator[T]) Iterator[U]
- func Only[T any](v T) Iterator[T]
- func Range(min, max int) Iterator[int]
- func Sorted[T any](it Iterator[T], less func(a, b T) bool) Iterator[T]
- func Take[T any](it Iterator[T], n int) Iterator[T]
- type List
- type Pair
- type Result
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.