4 ms·
No-one uses the built-in for loop in Ruby though. Instead, everyone uses the each method which looks the same as map. That said, the Ruby syntax can be a bit b
by yxhuvud 8y ago
No-one uses the built-in for loop in Ruby though. Instead, everyone uses the each method which looks the same as map.
That said, the Ruby syntax can be a bit bulky. Your syntax feels pretty clean TBH.