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

Map-based implementation of permutationOf, attempt 2 #41

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

radekn
Copy link

@radekn radekn commented Feb 1, 2016

Another attempt at fixing #38. Implementation of permutationOf is the same as in previous (failed) pull request #40. What's new here is updated tests and Map ponyfill for older environments like Node.js 0.10.

This makes it work correctly with arrays containing values of any type.
I wouldn't vouch for performance in such cases, but to my knowledge,
without native Map support, it's impossible to have both correctness
and good performance (i.e. time complexity lower than quadratic)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant