Thanks to the help of @markwilson, we can use a PHP Generator to generate the permutations of an array, of any length. Now that we have that, convert the class in src\Permutations.php in a proper PHP Generator.
Thanks to the help of @markwilson, we can use a PHP Generator to generate the permutations of an array, of any length.
Now that we have that, convert the class in src\Permutations.php in a proper PHP Generator.