<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>p-nix</author_name>
  <author_url>https://blog.hatena.ne.jp/p-nix/</author_url>
  <blog_title>学び、そして考える</blog_title>
  <blog_url>https://p-nix.hatenadiary.org/</blog_url>
  <categories>
    <anon>haskell</anon>
  </categories>
  <description>「畳み込み」を行う関数の一つである foldl 。 *main&gt; foldl (+) 0 [1,2,3] 6のようにリストの中身である1、2、3を左から足して、結果が6になる、という挙動を示す。いったいどういう仕組みなのだろうか。 foldl の定義は、 foldl :: (a -&gt; b -&gt; a) -&gt; a -&gt; [b] -&gt; a ･･･ 1) foldl step zero (x:xs) = foldl step (step zero x) xs ･･･ 2) foldl _ zero [] = zero ･･･ 3) foldlは引数を3つとる関数である。 1. step：リストの各値に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fp-nix.hatenadiary.org%2Fentry%2F20091218%2Fp1&quot; title=&quot; foldl について - 学び、そして考える&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>2009-12-18 00:00:00</published>
  <title> foldl について</title>
  <type>rich</type>
  <url>https://p-nix.hatenadiary.org/entry/20091218/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
