Sha256: 7353ffcd9423ffb75fe1d40ad867a9244d98a76c75803ee6a0a6fd0213e15739
Contents?: true
Size: 268 Bytes
Versions: 1
Compression:
Stored size: 268 Bytes
Contents
require "mpatch" x = {} (1..10000).each do |i| x["key#{i}"] = i end t=Time.now x.map_hash{ |k,v| { k.to_sym => v.to_s } } puts Time.now - t var= {hello: "world",no: "yes"} puts var var= [[:hello, "world"],[:no, "yes"]].map_hash{|k,v| {k => v} } puts var.inspect
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mpatch-2.11.0 | examples/hash.rb |