Project

General

Profile

« Previous | Next » 

Revision 0085153c

Added by Ewoud Kohl van Wijngaarden about 2 months ago

Fixes #37287 - Iterate on hashes when both key and value are used

This replaces the `hash.keys.each { |k| hash[k] }` and `hash.keys.sort`
patterns with `hash.each { |k, v| }` where it makes sense. This avoids
doing hash lookups when you already know the value anyway.

  • added
  • modified
  • copied
  • renamed
  • deleted