{"provider_url":"https://hatena.blog","blog_title":"sirocco \u306e\u66f8\u3044\u3066\u3082\u3059\u3050\u306b\u5fd8\u308c\u308b\u30e1\u30e2","blog_url":"https://sirocco.hatenadiary.org/","author_url":"https://blog.hatena.ne.jp/sirocco/","description":"Real World Haskell 3. \u578b\u5b9a\u7fa9\u3001\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u95a2\u6570 \u518d\u5e30\u578b \u518d\u5e30\u578b\u306e\u4f8b\u306b\u3042\u308b List \u578b\u3092\u4f7f\u3063\u3066\u30ea\u30b9\u30c8\u3063\u307d\u3044\u3053\u3068\u3092\u3084\u3063\u3066\u307f\u305f\u3002 data List a = Cons a (List a) | Nil deriving (Eq, Ord, Show) cons a b = Cons a b car (Cons x _ ) = x cdr (Cons _ xs) = xs strToLs [] = Nil strToLs (x:xs) = cons x (strToLs xs) lsToStr Nil = \"\" lsToStr (Cons x xs) = x:lsToStr \u2026","categories":["Haskell"],"type":"rich","image_url":null,"width":"100%","published":"2010-05-07 06:40:12","author_name":"sirocco","url":"https://sirocco.hatenadiary.org/entry/20100507/1273182012","provider_name":"Hatena Blog","height":"190","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20100507%2F1273182012\" title=\"\u300cReal World Haskell\u300d\u8aad\u66f8\u30e1\u30e2\u30003. \u578b\u5b9a\u7fa9\u3001\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u95a2\u6570 \u518d\u5e30\u578b - 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>","title":"\u300cReal World Haskell\u300d\u8aad\u66f8\u30e1\u30e2\u30003. \u578b\u5b9a\u7fa9\u3001\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u95a2\u6570 \u518d\u5e30\u578b"}