Anonymous user
Knuth's algorithm S: Difference between revisions
→{{header|Go}}
No edit summary |
|||
Line 115:
func sOfNCreator(n int) func(byte) []byte {
s := make([]byte, 0,
m := n
return func(item byte) []byte {
if len(s) <
s = append(s, item)
} else {
|