<?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#uniqは配列から重複した要素を取り除いた新しい配列を返す。 新しい配列を返すのではなく、破壊的に配列から重複した要素を取り除くArray#uniq!もある。 p [5, 1, 2, 4, 3, 1, 2, 5, 3, 5].uniq #=&gt; [5, 1, 2, 4, 3] a = [4, 3, 4, 5, 3, 2, 5, 4, 1, 5] a.uniq! p a #=&gt; [4, 3, 5, 2, 1]</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubytips86.hatenablog.com%2Fentry%2F2014%2F03%2F22%2F091734&quot; title=&quot;Array#uniqで配列から重複する要素を取り除く - 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-22 09:17:34</published>
  <title>Array#uniqで配列から重複する要素を取り除く</title>
  <type>rich</type>
  <url>https://rubytips86.hatenablog.com/entry/2014/03/22/091734</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
