Documentation ¶
Index ¶
- func AppendTo[T any](vs []T, iter tl.Iter[T]) []T
- func Filter[T any](inner tl.Iter[T], fn tl.CompareFunc[T]) tl.Iter[T]
- func Flatten[T any](inner tl.Iter[[]T]) tl.Iter[T]
- func Get[T any](iter tl.Iter[T]) T
- func Index[T any](iter tl.Iter[T], cmpFn tl.CompareFunc[T]) int
- func Map[T, V any](inner tl.Iter[T], conv func(T) V) tl.Iter[V]
- func Nth[T any](inner tl.Iter[T], nth int) tl.Iter[T]
- func Range[T constraints.Integer](start, stop, step T) tl.Iter[T]
- func Search[T any](iter tl.Iter[T], cmpFn tl.CompareFunc[T]) tl.Iter[T]
- func Slice[T any](vs []T) tl.Iter[T]
- func Sum[T constraints.Integer | constraints.Float](inner tl.Iter[T]) tl.Iter[T]
- func ToSlice[T any](iter tl.Iter[T]) []T
- func Unique[T comparable](inner tl.Iter[T]) tl.Iter[T]
- func UniqueFn[T any](inner tl.Iter[T], eq func(a, b T) bool) tl.Iter[T]
- func Window[T any](inner tl.Iter[T], n int) tl.Iter[[]T]
- func WindowCopy[T any](inner tl.Iter[T], n int) tl.Iter[[]T]
- func WindowSlice[T any](vs []T, n int) tl.Iter[[]T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sum ¶
func Sum[T constraints.Integer | constraints.Float](inner tl.Iter[T]) tl.Iter[T]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.