Skip to content
New issue

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

permutator #15

Open
nikhedonia opened this issue Jun 12, 2015 · 2 comments
Open

permutator #15

nikhedonia opened this issue Jun 12, 2015 · 2 comments

Comments

@nikhedonia
Copy link
Contributor

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] 
@jussi-kalliokoski
Copy link
Owner

👍 - I'd also like to see other combinatorics from python's itertools in Trine.

@nikhedonia
Copy link
Contributor Author

me too; itertools is a nice source of inspiration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants