Documentation ¶
Index ¶
- func Collect[T, R any](s Stream[T], collector Collector[T, R]) R
- func Reduce[T, P any](s Stream[T], acc P, reducer Reducer[T, P]) P
- type Collector
- type Reducer
- type Stream
- func From[T any](seq iter.Seq[T]) Stream[T]
- func FromChannel[T any](ch <-chan T) Stream[T]
- func FromGenerator[T any](generator func() T) Stream[T]
- func FromReader(reader io.Reader, splitFunc bufio.SplitFunc) Stream[string]
- func Map[T, U any](s Stream[T], mapper functions.Mapper[T, U]) Stream[U]
- func Range[T math.Real](lower, upper T) Stream[T]
- func RangeIncrement[T math.Real](lower, upper, increment T) Stream[T]
- func Window[T any](s Stream[T], width int) Stream[[]T]
- func (s Stream[T]) All(predicate predication.Predicate[T]) bool
- func (s Stream[T]) Any(predicate predication.Predicate[T]) bool
- func (s Stream[T]) Channel() <-chan T
- func (s Stream[T]) Collect(c Collector[T, T]) T
- func (s Stream[T]) Count() int
- func (s Stream[T]) Enumerate() Stream2[int, T]
- func (s Stream[T]) Filter(predicate predication.Predicate[T]) Stream[T]
- func (s Stream[T]) Find(predicate predication.Predicate[T]) (T, bool)
- func (s Stream[T]) First() (T, bool)
- func (s Stream[T]) ForEach(f functions.ParamCallback[T])
- func (s Stream[T]) Limit(count int) Stream[T]
- func (s Stream[T]) Map(mapper functions.Mapper[T, T]) Stream[T]
- func (s Stream[T]) Max(comparator comparison.Comparator[T]) (T, bool)
- func (s Stream[T]) Min(comparator comparison.Comparator[T]) (T, bool)
- func (s Stream[T]) Reduce(acc T, reducer Reducer[T, T]) T
- func (s Stream[T]) Seek(count int) Stream[T]
- func (s Stream[T]) Sort(comparator comparison.Comparator[T]) Stream[T]
- type Stream2
- func (s Stream2[K, V]) Count() int
- func (s Stream2[K, V]) FilterKeys(predicate predication.Predicate[K]) Stream2[K, V]
- func (s Stream2[K, V]) FilterValues(predicate predication.Predicate[V]) Stream2[K, V]
- func (s Stream2[K, V]) Keys() Stream[K]
- func (s Stream2[K, V]) Limit(count int) Stream2[K, V]
- func (s Stream2[K, V]) Seek(count int) Stream2[K, V]
- func (s Stream2[K, V]) Values() Stream[V]
- type Streamer
- type Streamer2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Stream ¶
func FromChannel ¶
func FromGenerator ¶ added in v1.2.0
func FromReader ¶ added in v1.1.0
func RangeIncrement ¶ added in v1.2.0
func (Stream[T]) Find ¶ added in v1.0.0
func (s Stream[T]) Find(predicate predication.Predicate[T]) (T, bool)
func (Stream[T]) ForEach ¶
func (s Stream[T]) ForEach(f functions.ParamCallback[T])
func (Stream[T]) Max ¶
func (s Stream[T]) Max(comparator comparison.Comparator[T]) (T, bool)
func (Stream[T]) Min ¶
func (s Stream[T]) Min(comparator comparison.Comparator[T]) (T, bool)
func (Stream[T]) Sort ¶
func (s Stream[T]) Sort(comparator comparison.Comparator[T]) Stream[T]
type Stream2 ¶ added in v1.2.0
func (Stream2[K, V]) FilterKeys ¶ added in v1.2.0
func (s Stream2[K, V]) FilterKeys(predicate predication.Predicate[K]) Stream2[K, V]
func (Stream2[K, V]) FilterValues ¶ added in v1.2.0
func (s Stream2[K, V]) FilterValues(predicate predication.Predicate[V]) Stream2[K, V]
Source Files ¶
Click to show internal directories.
Click to hide internal directories.