I found myself with this issue recently and though I've always used the same code to find distinct primitives (before we had the Set object), this code required me to adhere to the C# API where you pass in a comparison function T -> T -> boolean. This solution felt relatively clean though obviously not in linear time. github.com/jreina/ShittyLINQ.js/bl...
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I found myself with this issue recently and though I've always used the same code to find distinct primitives (before we had the
Set
object), this code required me to adhere to the C# API where you pass in a comparison functionT -> T -> boolean
. This solution felt relatively clean though obviously not in linear time.github.com/jreina/ShittyLINQ.js/bl...