Project

General

Profile

Actions

Task #90055

closed

Introduce PermutationUtility

Added by Oliver Hader almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-01-04
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Sprint Focus:

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']
Actions

Also available in: Atom PDF