-
Notifications
You must be signed in to change notification settings - Fork 0
CAT 024
unurgunite edited this page Jul 11, 2026
·
3 revisions
Severity:
info• Confidence:high• Auto-fix: ❌
keys/values.map → each_key/each_value — Use each_key/each_value with a block instead of .keys.map/.values.map to avoid intermediate arrays.
hash.keys.map { |k| k.to_s }
hash.values.map { |v| v * 2 }Note
See bench results at bench/cat-024/