<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sasashin</author_name>
  <author_url>https://blog.hatena.ne.jp/sasashin/</author_url>
  <blog_title>koyoweblog log</blog_title>
  <blog_url>https://sasashin.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>仕様 * 数値は、半角スペースで区切られた文字列で渡されます。 * 続いている部分は、最初の数値と最後の数値を-(ハイフン)で繋いだ表記にします。 * 連続が1回の場合(前の数も後ろの数も連続でない)は、-(ハイフン)では繋ぎません。 * 出力は、「,」(カンマ)と半角スペースで区切られた文字列でなければなりません。 例 * &quot;1 2 3&quot; =&gt; &quot;1-3.&quot; * &quot;1 2 3 5 7 8&quot; =&gt; &quot;1-3, 5, 7-8.&quot; * &quot;1 3 4 5 7&quot; =&gt; &quot;1, 3-5, 7.&quot; 回答例は判定用の変数と break 使っているのが気持ち悪いよねー。というわけで、自分でもやってみた。ついで…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsasashin.hatenadiary.jp%2Fentry%2F20080417%2F1208401809&quot; title=&quot; 連続した数列を範囲形式にまとめたい - koyoweblog log&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>2008-04-17 12:10:09</published>
  <title> 連続した数列を範囲形式にまとめたい</title>
  <type>rich</type>
  <url>https://sasashin.hatenadiary.jp/entry/20080417/1208401809</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
