Documentation ¶
Index ¶
- func Changes[S, C any](in iter.Seq[S], extractor ChangeExtractor[S, C]) iter.Seq[C]
- func Concat[T any](in ...iter.Seq[T]) iter.Seq[T]
- func Const[T any](in ...T) iter.Seq[T]
- func Contains[T comparable](seq iter.Seq[T], value T) bool
- func Dedup[T any](seq iter.Seq[T]) iter.Seq[T]
- func Empty[T any]() iter.Seq[T]
- func FlatMap[T any, U any](in iter.Seq[T], fn func(T) iter.Seq[U]) iter.Seq[U]
- func Map[T any, U any](in iter.Seq[T], fn func(T) U) iter.Seq[U]
- func WindowPair[T any](in iter.Seq[T]) iter.Seq[tuple.Pair[T, T]]
- type ChangeExtractor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains[T comparable](seq iter.Seq[T], value T) bool
Contains returns true if the sequence contains the value.
This consumes the iterator to the first occurrence of the value.
Types ¶
Click to show internal directories.
Click to hide internal directories.