Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DoChunkFunc ¶
type ExpandFunc ¶
type ExtractComparableKeyFunc ¶
type ExtractComparableKeyFunc[V any, K comparable] func(i int, a V) K
type ExtractKeyFunc ¶
type FilterFunc ¶
type MergeValuesFunc ¶
type Stream ¶
type Stream[V any] interface { First() (V, bool) FirstBy(checkValues FilterFunc[V]) (int, V, bool) Last() (V, bool) LastBy(checkValues FilterFunc[V]) (int, V, bool) Count() int AllMatch(checkValues FilterFunc[V]) bool AnyMatch(checkValues FilterFunc[V]) bool NoneMatch(checkValues FilterFunc[V]) bool ForEach(do DoFunc[V]) error ForEachAsync(do DoFunc[V]) error ForEachChunk(chunkSize int, do DoChunkFunc[V]) error ForEachChunkAsync(chunkSize int, do DoChunkFunc[V]) error Get() []V Reverse() Stream[V] Sort(sortValues SortFunc[V]) Stream[V] Filter(checkValues FilterFunc[V]) Stream[V] Peek(peekValues PeekFunc[V]) Stream[V] Expand(remap ExpandFunc[V]) Stream[V] Limit(int) Stream[V] Skip(int) Stream[V] Distinct(compareValues EqFunc[V]) Stream[V] DistinctByKey(distinctKey ExtractKeyFunc[V]) Stream[V] }
type WrapValueFunc ¶
Click to show internal directories.
Click to hide internal directories.