package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev

# Functions

CollectAll fully consumes the iterator, collecting all items the iterator emitted.
CollectMany collects the first n items of the iterator.
ConcatAll concatenates all elements yields by the iterators.
Done creates an IterResult which indices the iteration has finished.
DoneBy creates a finished or error IterResult by its argument.
Emit creates an IterResult which contains normal data.
Fail creates an iterator always fail.
FilterOut returns an iterator that yields all elements the original iterator generated and DOESN'T satisfies the predicate.
FlapMap applies the mapper over every elements the origin iterator generates, then flatten them.
FromSlice creates an iterator from a slice, the iterator would.
Func generates results by a function.
Map applies the mapper over every elements the origin iterator yields.
OfRange creates an iterator that yields elements in the integer range.
TakeFirst takes the first n elements of the iterator.
Tap adds a hook into the iterator, it would execute the function anytime the iterator emits an item.
Throw creates an IterResult which contains the err.
Transform returns an iterator that performs an impure procedure for each element, then emitting the result of that procedure.

# Structs

IterResult is the result of try to advancing an impure iterator.

# Interfaces

TryNextor is the general interface for "impure" iterators: which may trigger some error or block the caller when advancing.

# Type aliases

TransformConfig is the config for the combinator "transform".