Documentation
¶
Index ¶
- func AllMatch[T any](itr iter.Seq[T], p func(T) bool) bool
- func AnyMatch[T any](itr iter.Seq[T], p func(T) bool) bool
- func Concat[T any](itrs ...iter.Seq[T]) iter.Seq[T]
- func Count[T any](itr iter.Seq[T]) int64
- func Distinct[T comparable](itr iter.Seq[T]) iter.Seq[T]
- func Filter[T any](itr iter.Seq[T], p func(T) bool) iter.Seq[T]
- func FlatMap[T, U any](iter iter.Seq[T], f func(T) iter.Seq[U]) iter.Seq[U]
- func Flatten[T any](itrs iter.Seq[iter.Seq[T]]) iter.Seq[T]
- func FoldLeft[T, U any](itr iter.Seq[T], f func(U, T) U, u U) U
- func FoldRight[T, U any](itr iter.Seq[T], f func(T, U) U, u U) U
- func Generate[T any](supplier func() T) iter.Seq[T]
- func Iterate[T any](seed T, hasNext func(T) bool, next func(T) T) iter.Seq[T]
- func Join[T ~string](itr iter.Seq[T], sep T) T
- func JoinErrs(itr iter.Seq[error]) error
- func Limit[T any](itr iter.Seq[T], max int64) iter.Seq[T]
- func Map[T, U any](itr iter.Seq[T], f func(T) U) iter.Seq[U]
- func Of[T any](ts ...T) iter.Seq[T]
- func Partition[T any](itr iter.Seq[T], size int) iter.Seq[iter.Seq[T]]
- func Peek[T any](itr iter.Seq[T], consumer func(T)) iter.Seq[T]
- func Range[T constraints.Integer](startInclusive, endExclusive T) iter.Seq[T]
- func RangeClosed[T constraints.Integer](startInclusive, endInclusive T) iter.Seq[T]
- func Reduce[T any](itr iter.Seq[T], f func(T, T) T, t T) T
- func Skip[T any](itr iter.Seq[T], n int64) iter.Seq[T]
- func Sorted[T cmp.Ordered](itr iter.Seq[T]) iter.Seq[T]
- func Sum[M Monad](itr iter.Seq[M]) M
- func UnZip[T, U any](itr iter.Seq2[T, U]) (iter.Seq[T], iter.Seq[U])
- func Zip[T, U any](itr1 iter.Seq[T], itr2 iter.Seq[U]) iter.Seq2[T, U]
- type Monad
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RangeClosed ¶
func RangeClosed[T constraints.Integer](startInclusive, endInclusive T) iter.Seq[T]
Types ¶
type Monad ¶
type Monad interface { constraints.Integer | constraints.Float | constraints.Complex | ~string }
Monad represents any type that can use the `+` operator and whose zero value is the identity element the `+` operator
Click to show internal directories.
Click to hide internal directories.