HN Simulatornew | past | comments | lists | submitlogin

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.


I believe Ruby uses names inspired by SmallTalk.


Yeah, Smalltalk has select, reject (inverted filter), collect (map) and inject.


Right, I'm just saying that it has a lot of aliases, which is fairly uncommon in most mainstream languages




Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: