Documentation ¶
Index ¶
- Variables
- func CloseAny(as ...any) error
- func Collect[T any](it Iter[T]) ([]T, error)
- func Sample[T any](it Iter[T], keep int, ra *rand.Rand) ([]T, error)
- type Decoder
- type Iter
- type Iterator
- func Cat[T any](its Iter[Iter[T]]) *Iterator[T]
- func ChanCat[T any](its Iter[Iter[T]], bufsize, threads int) *Iterator[T]
- func DecoderIter[T any](d Decoder) *Iterator[T]
- func IntIter(n int) *Iterator[int]
- func MapIter[K comparable, V any](m map[K]V) *Iterator[KeyVal[K, V]]
- func Push[T any](p Puller[T]) *Iterator[T]
- func SamplePerc[T any](it Iter[T], keep float64, ra *rand.Rand) *Iterator[T]
- func SliceIter[T any](s []T) *Iterator[T]
- func SlicePtrIter[T any](s []T) *Iterator[*T]
- func Transform[T, U any](it Iter[T], f func(T) (U, error)) *Iterator[U]
- func Zip2[T, U any](i1 Iter[T], i2 Iter[U]) *Iterator[Tuple2[T, U]]
- type KeyVal
- type Path
- type Puller
- type PushPull
- type Scanner
- type Tuple2
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPull = errors.New("Pull error")
Functions ¶
Types ¶
type Iterator ¶
func DecoderIter ¶ added in v0.1.6
func SamplePerc ¶ added in v0.1.8
func SlicePtrIter ¶
type KeyVal ¶
type KeyVal[K comparable, V any] struct { Key K Val V }
type Scanner ¶ added in v0.1.5
func NewScanner ¶ added in v0.1.5
Click to show internal directories.
Click to hide internal directories.