Hash from two arrays: Difference between revisions
Content added Content deleted
No edit summary |
(→{{header|Ruby}}: removed custom method since it is built in nowadays) |
||
Line 1,447:
puts hash[ [1,2,3] ] # => 123
</lang>
In Ruby 2.1 the method "to_h" was introduced:
|