Issue Task Closed

#90055Introduce PermutationUtility

Oliver Hader 01/04/20, 21:00 updated 02/27/20, 12:42

Description

PermutationUtility::meltStringItems([['a', 'b'], ['c', 'd'], ['e', 'f']]);

results into

['ace', 'acf', 'ade', 'adf', 'bce', 'bcf', 'bde', 'bdf']

—-

PermutationUtility::meltArrayItems(['a','b'], ['c','e'], ['f','g']);

results into

['a', 'c', 'e'], ['a', 'c', 'f'], ['a', 'd', 'e'], ['a', 'd', 'f'],
['b', 'c', 'e'], ['b', 'c', 'f'], ['b', 'd', 'e'], ['b', 'd', 'f']

Reviews 2