MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / GenerateElementSet

Function GenerateElementSet

math/permutation/heaps.go:42–48  ·  view source on GitHub ↗
(out chan []string, n int)

Source from the content-addressed store, hash-verified

40}
41
42func GenerateElementSet(out chan []string, n int) {
43 elementSet := make([]string, n)
44 for i := range elementSet {
45 elementSet[i] = string(rune(i + 49)) // Adjust this if you want to change your charset
46 }
47 out <- elementSet
48}

Callers 1

HeapsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected