<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kazu-yamamoto</author_name>
  <author_url>https://blog.hatena.ne.jp/kazu-yamamoto/</author_url>
  <blog_title>あどけない話</blog_title>
  <blog_url>https://kazu-yamamoto.hatenablog.jp/</blog_url>
  <categories>
    <anon>Haskell</anon>
  </categories>
  <description>Haskell のリストはモナドであり、それは非決定性の文脈を表すと言われます。しかし、そのことを扱った例題は少なくて、しかもイマイチでした。そこで、Scheme で書かれたよい例題を Haskell で書き直してみました。「On Lisp」の「非決定性」の章では、謎めいた関数 choose と fail が出てきます。こんな難しい話をしなくても、Haskell では単に全探索することで非決定性を実現できます。なぜなら、Haskell の評価戦略は遅延評価なので、答えの先頭しか要求しなければ、残りの答えは探さないからです。というわけで、Haskell で非決定性の問題を解くことは、リストを使っ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkazu-yamamoto.hatenablog.jp%2Fentry%2F20100527%2F1274925294&quot; title=&quot;リストは非決定性のモナド - あどけない話&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>2010-05-27 10:54:54</published>
  <title>リストは非決定性のモナド</title>
  <type>rich</type>
  <url>https://kazu-yamamoto.hatenablog.jp/entry/20100527/1274925294</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
