Select()? ah, no, map() Where()? nope, it's filter() Aggregate()? nah, reduce() OrderBy()? here it's sort() Append()? push() All()? every() Any()? some() 🙂 "some"??? how can not a single one of these use the same syntax as linq shsadghasd 💀
ah yes just call arr.handful() to select more than one but not all elements. we also have arr.meandering() to shuffle all elements. also don't forget you can reverse arrays using arr.beeepBeeepBeeepBeeep()
@FreyaHolmer Some of these describe what they do better, like aggregate and where, others are just different words. But map is to me fundamentally something different than select. Map can return something completely different. It doesn't have to select from the argument.
@FreyaHolmer To be fair, most languages call the map function map: en.wikipedia.org/wiki/Map_(high… LinQ seems more to be designed from a database perspective than a functional programming perspective
@FreyaHolmer love C# but i think Linq is the weird one here
@FreyaHolmer You can always import linq.js if it makes you more productive/happier: github.com/mihaifm/linq
@FreyaHolmer Love C#, love LINQ, but it's the odd duck here. It's a functional programming library that's branded as a database abstraction, so it gets SQLy names. Then 90% of the time it gets used for things other than databases and the names look extra goofy.
@FreyaHolmer Actually the exception is LINQ here. Most languages use that vocabulary. It comes from Haskell afaik.