mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
6 lines
136 B
Ruby
6 lines
136 B
Ruby
|
h = {}
|
||
|
strs = ('a'..'z').to_a.map!(&:freeze)
|
||
|
strs.each { |s| h[s] = s }
|
||
|
strs = ('A'..'Z').to_a
|
||
|
200_000.times { strs.each { |s| h[s] } }
|