<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wata_d</author_name>
  <author_url>https://blog.hatena.ne.jp/wata_d/</author_url>
  <blog_title>閑古鳥</blog_title>
  <blog_url>https://www.little-cuckoo.jp/</blog_url>
  <categories>
    <anon>C#</anon>
    <anon>programming</anon>
  </categories>
  <description>C# 8.0 の新機能 - C# ガイド | Microsoft DocsC# 8.0で追加されたRangeやIndexによって、配列の一部の要素を参照したいときに以下のように書けるようになりました。Rubyっぽい。 int[] arr = {0, 1, 2, 3, 4, 5}; arr[^1].Dump(); // =&gt; 5 (最後の要素が取れる) arr[1..^1].Dump(); // =&gt; [1,2,3,4] ^1とだけ書くとSystem.Index型、1..2だとSystem.Range型で評価される。...はありません。配列の添え字にRangeを渡した場合、RuntimeHelp…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.little-cuckoo.jp%2Fentry%2F2019%2F11%2F29%2F193000&quot; title=&quot;C#のRangeとIndex - 閑古鳥&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>2019-11-29 19:30:00</published>
  <title>C#のRangeとIndex</title>
  <type>rich</type>
  <url>https://www.little-cuckoo.jp/entry/2019/11/29/193000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
