<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shuzo_kino</author_name>
  <author_url>https://blog.hatena.ne.jp/shuzo_kino/</author_url>
  <blog_title>Bye Bye Moore</blog_title>
  <blog_url>https://shuzo-kino.hateblo.jp/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>単にcdrっぽい事をしたい場合、 dropを使った方がシンプルになります。 コチラの記事を参照 配列系では、-1は末尾を示します。 sliceで-1を指定すると、末尾を返してくれます。 あらかじめサイズを知ってる必要がないので楽で良いですね。 &gt; [1,2,3].slice(-1) =&gt; 3 これと範囲指定を組み合わせると、配列のサイズに関係なく、先頭を除いた配列を手にする事が出来ます。 「...」は例の如く境界を含まないので更に尻尾も排除してくれます。 &gt; [1,2,3].slice(1..-1) =&gt; [2, 3] &gt; [1,2,3,4,5,6,7,8,9,10].slice(1..-1)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2013%2F11%2F17%2F131904&quot; title=&quot;sliceで先頭を除いた配列を返す(cdrっぽい事をする) - Bye Bye Moore&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>2013-11-17 13:19:04</published>
  <title>sliceで先頭を除いた配列を返す(cdrっぽい事をする)</title>
  <type>rich</type>
  <url>https://shuzo-kino.hateblo.jp/entry/2013/11/17/131904</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
