{"description":"\u300c\u7573\u307f\u8fbc\u307f\u300d\u3092\u884c\u3046\u95a2\u6570\u306e\u4e00\u3064\u3067\u3042\u308b foldl \u3002 *main> foldl (+) 0 [1,2,3] 6\u306e\u3088\u3046\u306b\u30ea\u30b9\u30c8\u306e\u4e2d\u8eab\u3067\u3042\u308b1\u30012\u30013\u3092\u5de6\u304b\u3089\u8db3\u3057\u3066\u3001\u7d50\u679c\u304c6\u306b\u306a\u308b\u3001\u3068\u3044\u3046\u6319\u52d5\u3092\u793a\u3059\u3002\u3044\u3063\u305f\u3044\u3069\u3046\u3044\u3046\u4ed5\u7d44\u307f\u306a\u306e\u3060\u308d\u3046\u304b\u3002 foldl \u306e\u5b9a\u7fa9\u306f\u3001 foldl :: (a -> b -> a) -> a -> [b] -> a \uff65\uff65\uff65 1) foldl step zero (x:xs) = foldl step (step zero x) xs \uff65\uff65\uff65 2) foldl _ zero [] = zero \uff65\uff65\uff65 3) foldl\u306f\u5f15\u6570\u30923\u3064\u3068\u308b\u95a2\u6570\u3067\u3042\u308b\u3002 1. step\uff1a\u30ea\u30b9\u30c8\u306e\u5404\u5024\u306b\u2026","author_url":"https://blog.hatena.ne.jp/p-nix/","published":"2009-12-18 00:00:00","height":"190","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fp-nix.hatenadiary.org%2Fentry%2F20091218%2Fp1\" title=\" foldl \u306b\u3064\u3044\u3066 - \u5b66\u3073\u3001\u305d\u3057\u3066\u8003\u3048\u308b\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","blog_url":"https://p-nix.hatenadiary.org/","title":" foldl \u306b\u3064\u3044\u3066","categories":["haskell"],"width":"100%","provider_name":"Hatena Blog","blog_title":"\u5b66\u3073\u3001\u305d\u3057\u3066\u8003\u3048\u308b","type":"rich","url":"https://p-nix.hatenadiary.org/entry/20091218/p1","author_name":"p-nix","provider_url":"https://hatena.blog"}