/combos

Generate combinations of words

Primary LanguageRustMIT LicenseMIT

combos

Given a file and integer k, print all possible permutations concatenated.

usage

Given the file /path/to/test with the following contents:

foo
bar
zoo

The command:

combos /path/to/test 2

will result in:

foobar
foozoo
barfoo
barzoo
zoofoo
zoobar