generatorics
generatorics copied to clipboard
An efficient combinatorics library for JavaScript utilizing ES2015 generators.
Please add typescript definitions (or rewrite in TypeScript), so we can have strong typing, compilation checks and IDE code completion support.
Hello @acarl005. Thanks for the awesome library. Would you consider switching from generators (using the `yield` keyword) to basic JS iterators (just the object with the `next` function & following...
Hello @acarl005. The fact that your functions need `this` to function has this somewhat uncomfortable side-effect that you cannot use them without calling them from the generatorics object. Here is...
Hello, The permutation function doesn't work if the parameter **size** is higher than the length of the parameter **arr**. Example **Works** ```js G.permutation(['0', '1', '2', '3'], 4); ```` **Doesn't work**...