4 ms·
The biggest thing that jumps out at me is that the Ruby code is defining a Hash object (map or dict) and not a function. To say a Ruby programmer would create
by bhrgunatha 13y ago
The biggest thing that jumps out at me is that the Ruby code is defining a Hash object (map or dict) and not a function.
To say a Ruby programmer would create a Hash object that uses a block instead of write a function seems plain wrong, despite how the algorithm for generating items was implemented.