{"url":"https://sshi.hatenadiary.org/entry/20041215/p2","blog_url":"https://sshi.hatenadiary.org/","type":"rich","blog_title":"sshi.Continual","image_url":null,"provider_url":"https://hatena.blog","title":" \u30b7\u30ea\u30fc\u30ba\u300c\u95a2\u6570\u578b\u8a00\u8a9ehaskell\u306e\u6df1\u9060\u300d \u7121\u9650\u30ea\u30b9\u30c8","categories":["haskell"],"author_url":"https://blog.hatena.ne.jp/sshi/","provider_name":"Hatena Blog","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsshi.hatenadiary.org%2Fentry%2F20041215%2Fp2\" title=\" \u30b7\u30ea\u30fc\u30ba\u300c\u95a2\u6570\u578b\u8a00\u8a9ehaskell\u306e\u6df1\u9060\u300d \u7121\u9650\u30ea\u30b9\u30c8 - sshi.Continual\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","width":"100%","author_name":"sshi","published":"2004-12-15 00:00:01","description":"\u307e\u305a\u306f\u30bd\u30fc\u30b9\u30021\u8db3\u3059\u95a2\u6570inc\u3068\u81ea\u7136\u6570\u751f\u6210\u95a2\u6570n_gen\u306e\u5b9a\u7fa9\u3002 inc n = n + 1 n_gen = 1 : map inc n_genhugs(haskell\u30a4\u30f3\u30bf\u30d7\u30ea\u30bf)\u3067\u306en_gen\u306e\u5b9f\u884c\u7d50\u679c Main> n_gen [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,\\ 30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,5\\ 6,57,58,59,60,61,62,63\u2026"}