Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Once ¶
func Once[V comparable](yield func(V) bool) func(V) bool
Once wraps yield to ensure each unique value is only yielded once.
Types ¶
type Seq ¶
Seq is an iterator over sequences of individual values. When called as seq(yield), seq calls yield(v) for each value v in the sequence, stopping early if yield returns false.
TODO: delete this once GOEXPERIMENT=rangefunc lands.
type Seq2 ¶
Seq2 is an iterator over sequences of pairs of values, most commonly key-value pairs. When called as seq(yield), seq calls yield(k, v) for each pair (k, v) in the sequence, stopping early if yield returns false.
TODO: delete this once GOEXPERIMENT=rangefunc lands.
Click to show internal directories.
Click to hide internal directories.