{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbowmoq.hatenadiary.org%2Fentry%2F20080110%2F1199973963\" title=\"\u57fa\u672c\u7684\u306a\u69cb\u6587 - \u3044\u3089\u305a\u3093\u3070\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"\u57fa\u672c\u7684\u306a\u69cb\u6587","author_url":"https://blog.hatena.ne.jp/bowmoq/","blog_title":"\u3044\u3089\u305a\u3093\u3070","type":"rich","width":"100%","height":"190","provider_url":"https://hatena.blog","published":"2008-01-10 23:06:03","url":"https://bowmoq.hatenadiary.org/entry/20080110/1199973963","provider_name":"Hatena Blog","categories":["Haskell","\u3075\u3064\u3046\u306eHaskell\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"blog_url":"https://bowmoq.hatenadiary.org/","author_name":"bowmoq","version":"1.0","description":"\u4eca\u65e5\u306f\u57fa\u672c\u7684\u306a\u69cb\u6587\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002 \u30b3\u30e1\u30f3\u30c8 Haskell\u306e\u30b3\u30e1\u30f3\u30c8\u306f -- \u3092\u4f7f\u3044\u307e\u3059\u3002 {- -}\u3067\u30d6\u30ed\u30c3\u30af\u5f62\u5f0f\u306e\u30b3\u30e1\u30f3\u30c8\u306b\u306a\u308a\u307e\u3059\u3002 -- \u968e\u4e57\u3092\u3082\u3068\u3081\u308b\u95a2\u6570 {- \u5f15\u6570\u306bInt\u3092\u3068\u308a\u8fd4\u308a\u5024\u306fInt -} factorial :: Int -> Int factorial 0 = 1 factorial n = n * factorial(n - 1) $ \u6f14\u7b97\u5b50 $\u6f14\u7b97\u5b50\u306f\u5f0f\u3092\u533a\u5207\u308b\u305f\u3081\u306b\u4f7f\u3046\u6f14\u7b97\u5b50\u3067\u3059\u3002\u4f7f\u3044\u65b9\u3068\u3057\u3066\u306fC\u306a\u3069\u306e\u62ec\u5f27\u3068\u540c\u3058\u3067\u3059\u3002 print $ length $ lines cs -- \u3053\u308c\u306f\u4ee5\u4e0b\u306e\u5f0f\u3068\u540c\u3058 print (lenth (lines cs)) \u30ec\u30a4\u30a2\u30a6\u2026","image_url":null}