<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ku-ma-me</author_name>
  <author_url>https://blog.hatena.ne.jp/ku-ma-me/</author_url>
  <blog_title>まめめも</blog_title>
  <blog_url>https://mametter.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>[[1, 2], [3, 4], [5, 6]] という配列から {1=&gt;2, 3=&gt;4, 5=&gt;6} を作る簡単な方法がないというのは、わりとよく出る話題でしたが、1.9 では実は Hash#[] として実装されていました (ruby-core:23225) 。 Hash[[[1, 2], [3, 4], [5, 6]]] #=&gt; {1=&gt;2, 3=&gt;4, 5=&gt;6} Hash#[] に配列ひとつだけを引数として与えたらそういう風になるらしい。知らなかったー。 [ruby-core:23225] にあるように、一応まだ ChangeLog 以外でドキュメント化されていない仕様ですが、テストに…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmametter.hatenablog.com%2Fentry%2F20090510%2Fp2&quot; title=&quot; 連想配列からハッシュを作る - まめめも&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-05-10 00:00:01</published>
  <title> 連想配列からハッシュを作る</title>
  <type>rich</type>
  <url>https://mametter.hatenablog.com/entry/20090510/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
