Jump to content

Hash from two arrays: Difference between revisions

→‎{{header|Ruby}}: Repair the inject() loop.
No edit summary
(→‎{{header|Ruby}}: Repair the inject() loop.)
Line 802:
hash = Hash[keys.zip(vals)]
else
hash = keys.zip(vals).inject({}) {|h, pkv| h.store(*pkv); hashh }
end
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.