Documentation
¶
Index ¶
- func ChunkDuration[V any](seq iter.Seq[V], d time.Duration) iter.Seq[[]V]
- func ChunkN[V any](seq iter.Seq[V], n int) iter.Seq[[]V]
- func Concat[T any](seqs ...iter.Seq[T]) iter.Seq[T]
- func Debounce[V any](seq iter.Seq[V], d time.Duration) iter.Seq[V]
- func Filter[V any](seq iter.Seq[V], filter func(V) bool) iter.Seq[V]
- func Flatten[T any](seq iter.Seq[iter.Seq[T]]) iter.Seq[T]
- func Map[I, O any](seq iter.Seq[I], m func(I) O) iter.Seq[O]
- func MapFilter[I, O any](seq iter.Seq[I], filter func(I) (O, bool)) iter.Seq[O]
- func MapOf[K comparable, V any, M ~map[K]V](m M) iter.Seq2[K, V]
- func Merge[T any](seqs ...iter.Seq[T]) iter.Seq[T]
- func Of[V any, E ~[]V](values E) iter.Seq[V]
- func OrderedMapOf[K cmp.Ordered, V any, M ~map[K]V](m M) iter.Seq2[K, V]
- func Recv[V any](c <-chan V) iter.Seq[V]
- func RecvContext[V any](ctx context.Context, c <-chan V) iter.Seq[V]
- func SliceOf[T any, E ~[]T](values E) iter.Seq2[int, T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChunkDuration ¶ added in v0.5.1
ChunkDuration splits sequence by time window and returns chunked sequence.
func MapOf ¶ added in v0.5.1
func MapOf[K comparable, V any, M ~map[K]V](m M) iter.Seq2[K, V]
MapOf converts a map to iteration with key and value
func OrderedMapOf ¶ added in v0.5.2
func RecvContext ¶ added in v0.5.1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.