Documentation ¶
Index ¶
- type DoChunkFunc
- type DoFunc
- type EqFunc
- type ExpandFunc
- type ExtractComparableKeyFunc
- type ExtractKeyFunc
- type FilterFunc
- type MergeValuesFunc
- type PeekFunc
- type SortFunc
- type Stream
- func FilterByType[V any, NV any](s Stream[V]) Stream[NV]
- func Join[V any, W any, VW any, K comparable](sLeft Stream[V], extractKeyLeft ExtractComparableKeyFunc[V, K], ...) Stream[VW]
- func New[V any](slice ...V) Stream[V]
- func Wrap[V any, NV any](s Stream[V], wrapValue WrapValueFunc[V, NV]) Stream[NV]
- func Wrap1to1[V any, NV any](s Stream[V], wrapValue Wrap1to1ValueFunc[V, NV]) Stream[NV]
- type Wrap1to1ValueFunc
- type WrapValueFunc
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] }
func FilterByType ¶ added in v1.0.2
type Wrap1to1ValueFunc ¶ added in v1.0.1
type WrapValueFunc ¶
Click to show internal directories.
Click to hide internal directories.