iter

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2026 License: MIT-0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cycle

func Cycle[Item any](seq iter.Seq[Item]) iter.Seq[Item]

func Interleave

func Interleave[Item any](seqs SliceOfSeq[Item]) iter.Seq[Item]

func PullMany

func PullMany[Item any](seqs SliceOfSeq[Item]) (next func() ([]Item, bool), stop func())

func ZipMany

func ZipMany[Item any](seqs SliceOfSeq[Item]) iter.Seq[[]Item]

Types

type SliceOfSeq

type SliceOfSeq[Item any] interface {
	ItemsWithIndex(yield func(int, iter.Seq[Item]) bool)
	Len() int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL