2

for example:

{a: 1}.each_with_object({}) do |(key, value), memo|

end

Why don't use

{a: 1}.each_with_object({}) do |key, value, memo|

And why it doesn't work with the latest version?

If you can provide links to the documetnation where this is explained. what's the name of this, and what was the motivation to do this?

engineersmnky
  • 25,495
  • 2
  • 36
  • 52
Dreeub
  • 396
  • 2
  • 5

0 Answers0