{"blog_title":"tmtms \u306e\u30e1\u30e2","blog_url":"https://blog.tmtms.net/","width":"100%","categories":["Ruby","Ruby2.6"],"published":"2018-12-03 00:00:00","author_url":"https://blog.hatena.ne.jp/tmtms/","provider_name":"Hatena Blog","version":"1.0","type":"rich","image_url":null,"height":"190","provider_url":"https://hatena.blog","description":"Ruby2.6\u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc\u306e3\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002 qiita.com Array Array#union \u8ffd\u52a0 Array#difference \u8ffd\u52a0 Array#filter, Array#filter! \u8ffd\u52a0 Array#to_h \u306b\u30d6\u30ed\u30c3\u30af\u3092\u6e21\u3059\u3068\u30ad\u30fc\u3068\u5024\u3092\u5909\u63db\u3067\u304d\u308b Array Array#union \u8ffd\u52a0 https://bugs.ruby-lang.org/issues/14097 \u5f15\u6570\u306b\u6307\u5b9a\u3057\u305f\u914d\u5217\u3092\u7d50\u5408\u3057\u305f\u65b0\u3057\u3044\u914d\u5217\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u3057\u307e\u3059\u3002\u91cd\u8907\u3057\u305f\u8981\u7d20\u306f\u524a\u9664\u3055\u308c\u307e\u3059\u3002 ary1 = [1, 2, 3] ary2 = ary1.union([2, 3, 4, 5]) ary\u2026","title":"Ruby 2.6 \u306e\u5909\u66f4\u70b9 - Array","author_name":"tmtms","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.tmtms.net%2Fentry%2F201812%2Fruby26-array\" title=\"Ruby 2.6 \u306e\u5909\u66f4\u70b9 - Array - tmtms \u306e\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://blog.tmtms.net/entry/201812/ruby26-array"}