<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Nobuhisa</author_name>
  <author_url>https://blog.hatena.ne.jp/Nobuhisa/</author_url>
  <blog_title>Nobuhisa's diary</blog_title>
  <blog_url>https://nobuhisa.hatenablog.jp/</blog_url>
  <categories>
    <anon>Haskell</anon>
  </categories>
  <description>ふつけるの4章に、関数内で関数を定義する方法があったのでクロージャを作ってみよう。 closure :: Int -&gt; (Int -&gt; Int) closure x = fn where fn :: Int -&gt; Int fn y = x + y main = do let f = closure 95 print $ f 5 うまく行きました。 しかしながら、これだけやるなら部分適用で・・・ add :: Int -&gt; Int -&gt; Int add x y = x + y main = do let f = add 5 print $ f 5 さらに+自体も関数なので main = do l…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnobuhisa.hatenablog.jp%2Fentry%2F20080602%2F1212349540&quot; title=&quot;クロージャ - Nobuhisa&amp;#39;s diary&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-02 04:45:40</published>
  <title>クロージャ</title>
  <type>rich</type>
  <url>https://nobuhisa.hatenablog.jp/entry/20080602/1212349540</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
