Skip to content

Instantly share code, notes, and snippets.

@JeffML
Created January 29, 2017 21:46
Show Gist options
  • Save JeffML/37d121b0b5cbd90b67356eb779c06a40 to your computer and use it in GitHub Desktop.
Save JeffML/37d121b0b5cbd90b67356eb779c06a40 to your computer and use it in GitHub Desktop.
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