<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hana_ori</author_name>
  <author_url>https://blog.hatena.ne.jp/hana_ori/</author_url>
  <blog_title>プログラミングガール</blog_title>
  <blog_url>https://hana-ori.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>そういえばRubyは配列同士で計算ができるんだった！ ということをうっかりしていたのでもう一度整理してみる。 # 配列を２つ用意 a = [1, 2, 2] b = [1, 3, 4, 5] # それぞれ計算してみる p a + b #concatと同じ p a.concat(b) #配列の結合 p a | b #和集合 p a - b #差集合 p a &amp; b #積集合 # 出力結果 [1, 2, 2, 1, 3, 4, 5] [1, 2, 2, 1, 3, 4, 5] [1, 2, 3, 4, 5] [2, 2] [1, 3, 4, 5] ううむ、すてき。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhana-ori.hatenablog.com%2Fentry%2F2017%2F04%2F11%2F153547&quot; title=&quot;Ruby｜配列の計算ふりかえり - プログラミングガール&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>2017-04-11 15:35:47</published>
  <title>Ruby｜配列の計算ふりかえり</title>
  <type>rich</type>
  <url>https://hana-ori.hatenablog.com/entry/2017/04/11/153547</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
