Documentation
¶
Overview ¶
Package permutations is library of functions to create permutations
Ralf Poeppel 2018
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnumerateInterval ¶
EnumerateInterval enumerate the integers in an intervall, s. sicp chapter 2.2.3
func GeneratePermutations ¶
func GeneratePermutations(values []interface{}) [][]interface{}
GeneratePermutations generates the permutations of an array of values. The rows of the array are not sorted. This is the fastest algorithm in this package.
func GeneratePermutationsSorted ¶
func GeneratePermutationsSorted(values []interface{}) [][]interface{}
GeneratePermutationsSorted generate an array with all permutations of an array of values and maintain the sort order of the array.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.