Documentation
¶
Overview ¶
Package combs provides generic functions for producing combinations and permutations from slices of any type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Combinations ¶
Creates a channel that returns all combinations of n items from the slice v.
func Permutations ¶
func Permutations[T any](a []T) <-chan []T
Creates a channel that returns all permutations of a slice of any type. Uses Heap's Algorithm (thanks wikipedia)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.