<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>s-uotani-zetakansu</author_name>
  <author_url>https://blog.hatena.ne.jp/s-uotani-zetakansu/</author_url>
  <blog_title>webエンジニアの日常</blog_title>
  <blog_url>https://www.uosansatox.biz/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>こんにちは、エンジニアのさもです。 普段Rubyを使っている方や、Rubyを使い始めた方もuser_list[0..3]のように配列に対して範囲を指定できることはご存知かと思います。 一方、user_list[0...3]のように3つドットを使うとindexが0から2（3は含まない）の範囲の要素をとってくることができます。 これ、いつ使うねんとずっと思っていたのですが、使うと記述が簡単になる場面に遭遇したので紹介します。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.uosansatox.biz%2Fentry%2F2017%2F12%2F05%2F165712&quot; title=&quot;Rubyの3つドットで指定する範囲（[1...4]等）はいつ使うか - webエンジニアの日常&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>https://cdn.mogile.archive.st-hatena.com/v1/image/s-uotani-zetakansu/316973853239214550.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-12-05 16:57:12</published>
  <title>Rubyの3つドットで指定する範囲（[1...4]等）はいつ使うか</title>
  <type>rich</type>
  <url>https://www.uosansatox.biz/entry/2017/12/05/165712</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
