We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement a permutator which yields all permutations of a given list
for( permutation of [1,2,3]::permutate() ){ console.log(permutation); } //would print [1,2,3] , [2,1,3] , [2,3,1], [3,2,1] , [3,1,2], [1,3,2]
The text was updated successfully, but these errors were encountered:
👍 - I'd also like to see other combinatorics from python's itertools in Trine.
Sorry, something went wrong.
me too; itertools is a nice source of inspiration
No branches or pull requests
implement a permutator which yields all permutations of a given list
The text was updated successfully, but these errors were encountered: