permute

package
v0.0.0-...-68053d7 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 0 Imported by: 0

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.

Jump to

Keyboard shortcuts

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