4 ms·
my instinct is ["a","bb","ccc","dddd"].grep /.../ but then, I'm a recovering perl hacker
by inopinatus 3y ago
my instinct is
["a","bb","ccc","dddd"].grep /.../
but then, I'm a recovering perl hacker
- jonahx 3y agoLove it!
- dragonwriter 3y agoYeah, mirroring the Haskell code, while possible in Ruby, is definitely not the best Ruby-aware approach, either for concision or clarity. The composability is available, but the problems where it is the best solution are different.