logoalt Hacker News

saghmtoday at 2:15 AM1 replyview on HN

There's always the Ruby strategy of just making all the names work. `select` and `filter` are buddies and you can use whichever you want or even go back and forth. Not a fan of `reduce`? That's fine, `inject` has got your back. Miss getting to type `collect` from Java or Rust? Don't worry, just use it instead of `map`, it's the same thing.


Replies

brabeltoday at 6:56 AM

I believe Ruby uses names inspired by SmallTalk.

show 1 reply