iterx

package
v0.0.0-...-df44091 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BufferedPull

func BufferedPull[T any](seq iter.Seq[T]) (
	next func() (T, bool),
	peek func(lookahead int) (T, bool),
	stop func(),
)

func Collect

func Collect[T any](iterator iter.Seq[T]) (slice []T)

func CollectMap

func CollectMap[T comparable, U any](iterator iter.Seq2[T, U]) map[T]U

func CollectN

func CollectN[T any](iterator iter.Seq[T], n int) (slice []T)

func FromSlice

func FromSlice[S ~[]E, E any](slice S) iter.Seq[E]

func IncrementalPermutations

func IncrementalPermutations(sub, slice, added int) iter.Seq[[]int]

func Map

func Map[T any](mapping []T, iterator iter.Seq[[]int]) iter.Seq[[]T]

func Permutations

func Permutations(sub, slice int) iter.Seq[[]int]

func Pipe

func Pipe[T any](iterator iter.Seq[T], yield func(T) bool) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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