Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstsAndRests ¶
func FirstsAndRests[T any](items []T) [][]T
FirstsAndRests takes a slice of items. It returns a slice of slices of items, where each item in the original list has a turn at being first, and the other items are in the original order.
func PermuteTwoAndRests ¶
func PermuteTwoAndRests[T any](items []T) [][]T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.