:rhinoceros: @combinatorics/n-multicombinations
Set n-multicombinations for JavaScript. See docs.
:warning: Depending on your environment, the code may require
regeneratorRuntime
to be defined, for instance by importing regenerator-runtime/runtime.
import {multicombinations} from '@combinatorics/n-multicombinations';
multicombinations("ABC", 1); // A B C
import {range} from '@iterable-iterator/range';
multicombinations(range(3), 2); // 00 01 02 11 12 22