Fun with each_with_object and other Enumerator adventures

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 https://rubyonrails.ba/single/fun-with-each_with_object-and-other-enumerator-adventures

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles