These are chat archives for ramda/ramda
I use Ramda for much less now that I'm working with modern JS. I still use it, of course, but there are many places where the syntax enhancements make it feel superfluous.
@CrossEye That's surprising to me. Coming back to TypeScript from Elm, we're using all the latest whiz-bang goodies and I still find Ramda indispensable.
uniqtime cost is n2...
@mike442144 I don't think the runtime of
uniq is O(n2) .. ramda uses a
Set behind the scenes to determine duplicates and I'm pretty sure the JS Set uses a hash table (or even better) implementation to bucket elements with similar hashes and hence reduce the amount of search needed to determine equality .. based on this example: https://goo.gl/XVTC6F you can see that the runtime is not a polynomial function of the input size but more or less linear