<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rubytips86</author_name>
  <author_url>https://blog.hatena.ne.jp/rubytips86/</author_url>
  <blog_title>Ruby Tips!</blog_title>
  <blog_url>https://rubytips86.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>配列の差を取るにはArray#-を使って以下のようにする。 これで左辺の配列から右辺の配列にある要素がすべて取り除かれる。 a1 = [&quot;apple&quot;, &quot;orange&quot;, &quot;mango&quot;] a2 = [&quot;orange&quot;] p a1 - a2 #=&gt; [&quot;apple&quot;, &quot;mango&quot;] なお重複した要素があった場合はすべての要素が取り除かれる。 a1 = [&quot;apple&quot;, &quot;apple&quot;, &quot;apple&quot;] a2 = [&quot;apple&quot;] p a1 - a2 #=&gt; []</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubytips86.hatenablog.com%2Fentry%2F2014%2F03%2F24%2F125642&quot; title=&quot;配列の差を取る - Ruby Tips!&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>2014-03-24 12:56:42</published>
  <title>配列の差を取る</title>
  <type>rich</type>
  <url>https://rubytips86.hatenablog.com/entry/2014/03/24/125642</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
