<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryugate</author_name>
  <author_url>https://blog.hatena.ne.jp/ryugate/</author_url>
  <blog_title>ryugateの日記</blog_title>
  <blog_url>https://ryugate.hatenadiary.org/</blog_url>
  <categories>
    <anon>Scala</anon>
  </categories>
  <description>結構便利かも・・・ val lst = List(0,1,2,3,4,5,6,7,8,-1,10,11,12,13) Stream.from(2).takeWhile{ lst(_) != -1 }.foreach {i =&gt; println(lst(i)) } と、すると 2 3 4 5 6 7 8 となる。さらに、 Stream from 2 takeWhile ( lst(_) != -1 ) foreach {i =&gt; println(lst(i)) } と、かなり自然にも書ける。ちょっとパズル的ですが、(1,1),(1,2),(1,3),(2,1),(2,2)...は以下のようにすれ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryugate.hatenadiary.org%2Fentry%2F20080314%2Fp1&quot; title=&quot;Stream（無限リストもしくは「リストを作る関数オブジェクトをラップしたリスト by keisuken」） - ryugateの日記&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-03-14 00:00:00</published>
  <title>Stream（無限リストもしくは「リストを作る関数オブジェクトをラップしたリスト by keisuken」）</title>
  <type>rich</type>
  <url>https://ryugate.hatenadiary.org/entry/20080314/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
