Documentation
¶
Overview ¶
Package xiter provides iterator utilities.
It may or may not be superseded by `x/exp/xiter` package. See https://github.com/golang/go/issues/61898.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chunk ¶
Chunk returns an iterator over consecutive slices of up to n elements of seq. All but the last slice will have size n. All slices are clipped to have no capacity beyond the length. If seq is empty, the sequence is empty: there is no empty slice in the sequence. Chunk panics if n is less than 1.
https://github.com/golang/go/issues/61898#issuecomment-2522037782
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.