package
Version:
v0.11.3
Opens a new window with list of versions in this module.
Published: Jun 30, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type It[T any] interface {
HasNext() bool
Next() T
Peek(func(T)) It[T]
}
func Arr[T any](slice []T) It[T]
func Chan[T any](ch chan *T) It[T]
func Generate[T any](generator func() (T, bool)) It[T]
func Map[T, R any](it It[T], mappingFunc func(val T) R) It[R]
func Single[T any](val T) It[T]
func Sink[T any](sinkConsumer func(sink ItSink[T])) It[T]
type ItMap[T, R any] interface {
Map(func(T) R) It[R]
}
type ItSink[T any] interface {
OnNext(T)
Complete()
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.