Skip to content

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