Fun with each_with_object and other Enumerator adventures
24-Oct-2019 1643
A short preface: I am writing in Ruby since 2004. For last 5 years I am also participating in language development, documenting new and old features, proposing some (several got accepted) and diving deep into weirdest mysteries of the language. So, I was pretty confident I’ve seen every technique for clean and DRY code with functional flavour. That was until today, my friend and fellow Rubyist Vladimir Ermilov discovered this:.
Fun with each_with_object and other Enumerator adventures #ruby #rubydeveloper #rubyonrails #each_with_object #other #Enumerator #adventures https://www.rubyonrails.ba/link/fun-with-each_with_object-and-other-enumerator-adventures