<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>metanest</author_name>
  <author_url>https://blog.hatena.ne.jp/metanest/</author_url>
  <blog_title>ksmakotoのhatenadiary</blog_title>
  <blog_url>https://ksmakoto.hatenadiary.com/</blog_url>
  <categories>
  </categories>
  <description>foldrはその定義から、無限リストに対しても使うことができますが、時には注意が必要です。たとえば、タプルを受け渡すような場合には注意しないと、無限リストに対して止まらなくなります。Stackoverflowで見掛けたリストを2本に分けるコード http://stackoverflow.com/a/7412022 で、ちょうどそのパターンにはまりましたので、簡単なメモとして残します。--問題あり。記事の最後を見ること。 foldr (\x (ys, zs) -&gt; (x : zs, ys)) ([], []) エレガントですが、実は問題をはらんでいて、無限のリストに対して使うと止まらなくなります…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fksmakoto.hatenadiary.com%2Fentry%2F2014%2F05%2F22%2F223223&quot; title=&quot;foldrでタプルを渡す場合の注意 - ksmakotoのhatenadiary&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>2014-05-22 22:32:23</published>
  <title>foldrでタプルを渡す場合の注意</title>
  <type>rich</type>
  <url>https://ksmakoto.hatenadiary.com/entry/2014/05/22/223223</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
