Set n-multicombinations for JavaScript. See docs.
⚠️ Depending on your environment, the code may requireregeneratorRuntime
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