{"provider_name":"Hatena Blog","width":"100%","author_name":"sirocco","title":"\u9045\u5ef6\u8a55\u4fa1\uff08\u7121\u9650\u30ea\u30b9\u30c8\u3068 take\uff09","categories":["Haskell"],"author_url":"https://blog.hatena.ne.jp/sirocco/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20100503%2F1272860486\" title=\"\u9045\u5ef6\u8a55\u4fa1\uff08\u7121\u9650\u30ea\u30b9\u30c8\u3068 take\uff09 - sirocco \u306e\u66f8\u3044\u3066\u3082\u3059\u3050\u306b\u5fd8\u308c\u308b\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u7121\u9650\u30ea\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u7d50\u679c\u304b\u3089 take \u95a2\u6570\u306b\u3088\u308a\u53d6\u5f97\u3057\u3066\u3044\u308b\u306e\u3067\u306f\u306a\u3044\u3002 import Debug.Trace take' n _ | n <= 0 = trace (\"[]\") [] take' _ [] = trace (\"[]\") [] take' n (x:xs) = trace (show x ++ \" : take' (\"++show n++\"-1) xs\") (x : take' (n-1) xs) iterate' f x = trace (show x ++ \" : iterate' f (f \" ++ show x ++\")\") (x : iterate' f (f \u2026","image_url":null,"published":"2010-05-03 13:21:26","blog_title":"sirocco \u306e\u66f8\u3044\u3066\u3082\u3059\u3050\u306b\u5fd8\u308c\u308b\u30e1\u30e2","url":"https://sirocco.hatenadiary.org/entry/20100503/1272860486","type":"rich","provider_url":"https://hatena.blog","height":"190","blog_url":"https://sirocco.hatenadiary.org/","version":"1.0"}