This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function* anf(length, base) { | |
| let arr = new Array(length).fill(0); | |
| while (true) { | |
| yield arr; | |
| let br = true; | |
| for (let i = 0; i < length; i++) { | |
| if (arr[i] != base - 1) { | |
| ++arr[i]; |