Skip to content

jimmiebtlr/permutation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GoDoc

ch := make(chan []int)
Permute(5, 5, ch)

i := 0
for p = range ch {
  fmt.Println( p )
}
ch := make(chan []int)

Permute(len(someArray), len(someArray), ch)

i := 0
for p = range ch {
  total := 0
  for index := p {
    total += someCalc(someArray[index])
  }
  fmt.Printf( "Total for this permutation was %f", total)
}

[TODO] Improve test coverage.

About

Go library for permutation generation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages