{"image_url":null,"description":"\u6f14\u7fd2\u554f\u984c\u306e6\u3060\u3051\u300c?\u300d\u304c\u6b8b\u308a\u307e\u3057\u305f\u3002foldr\u3068\u304b\u4f7f\u3046\u3093\u3060\u3068\u601d\u3046\u3093\u3060\u3051\u3069\u30fb\u30fb\u30fb \u3069\u3046\u3084\u3063\u305f\u3089\u7c21\u7565\u5316\u3067\u304d\u308b\u3093\u3060\u308d\uff1f -- 6. \u518d\u5e30\u95a2\u6570 -- 6.1 \u57fa\u672c\u6982\u5ff5 factorial :: Int->Int -- factorial n = product [1..n] factorial 0 = 1 factorial n = n * factorial (n-1) -- (*) :: Int -> Int -> Int -- m * 0 = 0 -- m * n = m + (m*(n-1)) -- 6.2 \u30ea\u30b9\u30c8\u306b\u5bfe\u3059\u308b\u518d\u5e30 -- product :: Num a => [a] -> a -\u2026","categories":[],"type":"rich","url":"https://aomoriringo.hateblo.jp/entry/2012/06/26/175926","provider_name":"Hatena Blog","blog_title":"\u30c1\u30e5\u30fc\u30ea\u30f3\u30b0\u4e0d\u5b8c\u5168","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Faomoriringo.hateblo.jp%2Fentry%2F2012%2F06%2F26%2F175926\" title=\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0Haskell 6\u7ae0 - \u30c1\u30e5\u30fc\u30ea\u30f3\u30b0\u4e0d\u5b8c\u5168\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://aomoriringo.hateblo.jp/","author_url":"https://blog.hatena.ne.jp/aomori-ringo2/","version":"1.0","author_name":"aomori-ringo2","provider_url":"https://hatena.blog","width":"100%","title":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0Haskell 6\u7ae0","height":"190","published":"2012-06-26 17:59:26"}