<?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>状態をモナドで実現する方法を考えます。 リスト 例は簡単な方がいいので、データ構造として Lisp 風のリストを定義しましょう。 data List a = Nil | Cons a (List a) deriving Show リストは、こんな風に表せます。 Cons &quot;c&quot; (Cons &quot;b&quot; (Cons &quot;a&quot; Nil)) Lisp 風の cons も定義してみましょう。 cons :: a -&gt; List a -&gt; List a cons x xs = Cons x xs cons &quot;c&quot; $ cons &quot;b&quot; $ cons &quot;a&quot; Nil → Cons &quot;c&quot; (Cons &quot;b&quot; (…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkazu-yamamoto.hatenablog.jp%2Fentry%2F20080604%2F1212573964&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>2008-06-04 19:06:04</published>
  <title>状態モナド遊び</title>
  <type>rich</type>
  <url>https://kazu-yamamoto.hatenablog.jp/entry/20080604/1212573964</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
