Created
January 29, 2017 21:46
-
-
Save JeffML/37d121b0b5cbd90b67356eb779c06a40 to your computer and use it in GitHub Desktop.
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
var menu = require('./menu'); | |
var Combinator = require('./Combinator-generator-naive'); | |
function run() { | |
var threeCombos = new Combinator({ | |
min: menu.threeItems.min, | |
max: menu.threeItems.max | |
}) | |
.combine([], menu.threeItems.values); | |
for (;;) { | |
var it = threeCombos.next(); | |
if (it.done) { | |
console.log("done!") | |
break; | |
} | |
console.log("choice", it.value); | |
} | |
} | |
run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment