Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 501 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 501 Bytes

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.