itertools

package
v0.0.0-...-f7fc3e7 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Permutations

func Permutations[T any](pool []T, r int) iter.Seq[[]T]

Permutations returns an iterator over all length-r permutations (without replacement) drawn from the values produced by seq, in lexicographic index order (matching Python/itertools behavior). If r > n, it yields nothing. If r == 0, it yields a single empty slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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