Documentation
¶
Index ¶
- func All[T any](s []T, f seq.Func[T, bool]) bool
- func Any[T any](s []T, f seq.Func[T, bool]) bool
- func Average[T seq.Number](s []T) T
- func AverageFunc[T any, A seq.Number](s []T, f seq.Func[T, A]) A
- func Chunk[T any](s []T, size int) iter.Seq[[]T]
- func Combinations[T any](s []T, size int) iter.Seq[[]T]
- func Concat[T any](ss ...[]T) iter.Seq[T]
- func CountBy[T any, K comparable](s []T, f seq.Func[T, K]) map[K]int
- func CountFunc[T any](s []T, f seq.Func[T, bool]) int
- func Distinct[T comparable](s []T) iter.Seq[T]
- func DistinctBy[T any, K comparable](s []T, f seq.Func[T, K]) iter.Seq[T]
- func DistinctFunc[T any, K comparable](s []T, f seq.Func[T, K]) iter.Seq[K]
- func DistinctUntilChanged[T comparable](s []T) iter.Seq[T]
- func DistinctUntilChangedFunc[T any, K comparable](s []T, f seq.Func[T, K]) iter.Seq[T]
- func Except[T comparable](s1 iter.Seq[T], s2 iter.Seq[T]) iter.Seq[T]
- func ExceptFunc[T any, K comparable](s1 []T, s2 []T, f seq.Func[T, K]) iter.Seq[T]
- func Expand[T any](s []T, f func(T) iter.Seq[T]) iter.Seq[T]
- func Filter[T any](s []T, f seq.Func[T, bool]) iter.Seq[T]
- func Find[T any](s []T, f seq.Func[T, bool]) (val T, index int)
- func FlatMap[T, C any](s []T, subcoll seq.Func[T, iter.Seq[C]]) iter.Seq[C]
- func FlatMapR[T, C, R any](s []T, subcoll seq.Func[T, iter.Seq[C]], result seq.Func2[T, C, R]) iter.Seq[R]
- func GroupBy[T any, K comparable](s []T, f seq.Func[T, K]) map[K][]T
- func GroupByV[T any, K comparable, V any](s []T, keyFunc seq.Func[T, K], valueFunc seq.Func[T, V]) map[K][]V
- func Interleave[T any](ss ...[]T) iter.Seq[T]
- func Interpose[T any](s []T, sep T) iter.Seq[T]
- func Intersect[T comparable](s1 iter.Seq[T], s2 iter.Seq[T]) iter.Seq[T]
- func IntersectFunc[T any, K comparable](s1 []T, s2 []T, f seq.Func[T, K]) iter.Seq[T]
- func Join[T1 any, T2 any, K comparable](s1 []T1, s2 []T2, key1 seq.Func[T1, K], key2 seq.Func[T2, K]) iter.Seq2[T1, T2]
- func JoinFunc[T1 any, T2 any, K comparable, R any](s1 []T1, s2 []T2, key1 seq.Func[T1, K], key2 seq.Func[T2, K], ...) iter.Seq[R]
- func Map[T, R any](s []T, f seq.Func[T, R]) []R
- func Pairwise[T any](s []T) iter.Seq2[T, T]
- func PairwiseFunc[T, R any](s []T, f seq.Func2[T, T, R]) iter.Seq[R]
- func PartitionBy[T any, V comparable](s []T, f seq.Func[T, V]) iter.Seq[[]T]
- func Reduce[T any](s []T, f seq.Func2[T, T, T]) T
- func ReduceA[T, A any](s []T, f seq.Func2[A, T, A], initValue A) A
- func Repeat[T any](s []T, count int) iter.Seq[T]
- func Scan[T, A any](s []T, f seq.Func2[A, T, A], initValue A) iter.Seq[A]
- func Skip[T any](s []T, count int) iter.Seq[T]
- func SkipWhile[T any](s []T, f seq.Func[T, bool]) iter.Seq[T]
- func Sum[T cmp.Ordered](s []T) T
- func SumFunc[T any, A cmp.Ordered](s []T, f seq.Func[T, A]) A
- func Take[T any](s []T, count int) iter.Seq[T]
- func TakeWhile[T any](s []T, f seq.Func[T, bool]) iter.Seq[T]
- func ToMap[T any, K comparable](s []T, keyFunc seq.Func[T, K]) map[K]T
- func ToMapV[T any, K comparable, V any](s []T, keyFunc seq.Func[T, K], valueFunc seq.Func[T, V]) map[K]V
- func Union[T comparable](s1 iter.Seq[T], s2 iter.Seq[T]) iter.Seq[T]
- func UnionFunc[T any, K comparable](s1 []T, s2 []T, f seq.Func[T, K]) iter.Seq[T]
- func Windowed[T any](s []T, size int) iter.Seq[[]T]
- func Zip[T1, T2 any](s1 []T1, s2 []T2) iter.Seq2[T1, T2]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Distinct ¶
func Distinct[T comparable](s []T) iter.Seq[T]
func DistinctBy ¶
func DistinctFunc ¶
func DistinctUntilChanged ¶
func DistinctUntilChanged[T comparable](s []T) iter.Seq[T]
func ExceptFunc ¶
func Interleave ¶
func IntersectFunc ¶
func PartitionBy ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.