Hash from two arrays: Difference between revisions
Content deleted Content added
No edit summary |
→{{header|Ruby}}: Repair the inject() loop. |
||
Line 802:
hash = Hash[keys.zip(vals)]
else
hash = keys.zip(vals).inject({}) {|h,
end
|