<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xtalco</author_name>
  <author_url>https://blog.hatena.ne.jp/xtalco/</author_url>
  <blog_title>新言語 Xtalを作る日記</blog_title>
  <blog_url>https://xtalco.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>配列の要素巡回には次のような方法があります。 普通にfor文で for(i : 0; i&lt;ary.length; ++i){ println(i); }Iterator文で ary.each{ // Array::eachは要素を巡回できるIteratorを返す。 println(it); }下のは次のように、eachを省いても書けるようになりました。 ary{ println(it); }これにより、あるメソッドが、戻り値としてIteratorを返すか、配列を返すかに関わらず{}を適用できるようになりました。 foo.hoge{ // 以前は配列を返す場合は foo.foge.each{ と…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxtalco.hatenadiary.org%2Fentry%2F20061118&quot; title=&quot;ArrayとIterator - 新言語 Xtalを作る日記&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>2006-11-18 00:00:00</published>
  <title>ArrayとIterator</title>
  <type>rich</type>
  <url>https://xtalco.hatenadiary.org/entry/20061118</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
