{"author_url":"https://blog.hatena.ne.jp/ha-tan/","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fha-tan.hatenadiary.org%2Fentry%2F20061220%2F1166542222\" title=\" \u5fb3\u304c\u9ad8\u3044 \u21d4 \u4f4e\u3044 - \u8da3\u5473\u7684\u306b\u3063\u304d\" 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","categories":["Haskell"],"author_name":"ha-tan","published":"2006-12-20 00:30:22","provider_name":"Hatena Blog","blog_url":"https://ha-tan.hatenadiary.org/","image_url":null,"title":" \u5fb3\u304c\u9ad8\u3044 \u21d4 \u4f4e\u3044","url":"https://ha-tan.hatenadiary.org/entry/20061220/1166542222","height":"190","blog_title":"\u8da3\u5473\u7684\u306b\u3063\u304d","type":"rich","description":"Haskell\u3067\u5fb3\u304c\u9ad8\u3044\u30d7\u30ed\u30b0\u30e9\u30e0\u3063\u3066\u3044\u3046\u8868\u73fe\u3092\u3069\u3053\u304b\u3067\u898b\u305f\u306a\u30fc\u3068\u601d\u3063\u3066Google\u306b\u805e\u3044\u3066\u307f\u307e\u3057\u305f\u3002\u3069\u3046\u3084\u3089\u3053\u3053\u306e\u3088\u3046\u3067\u3059\u3002 Diary \u5ba3\u8a00\u7684\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304f\u3068\u5fb3\u304c\u9ad8\u3044\u305d\u3046\u3067\u3059\u3002\u306a\u308b\u307b\u3069\u3002 \u5fb3\u304c\u9ad8\u3044\u4f8b\u3002 fact 0 = 1 fact n = n * fact (n - 1) fact n = foldl (*) 1 [1..n] fact n = foldr (*) 1 [1..n] \u5fb3\u304c\u4f4e\u3044\u4f8b\u3002 fact n | n < 2 = 1 | otherwise = n * fact1 (n - 1) fac n = if (n == 0) then 1 else n * fact4 (n\u2026","width":"100%"}