{"image_url":null,"url":"https://kazu-yamamoto.hatenablog.jp/entry/20080604/1212573964","author_name":"kazu-yamamoto","title":"\u72b6\u614b\u30e2\u30ca\u30c9\u904a\u3073","provider_name":"Hatena Blog","published":"2008-06-04 19:06:04","blog_title":"\u3042\u3069\u3051\u306a\u3044\u8a71","description":"\u72b6\u614b\u3092\u30e2\u30ca\u30c9\u3067\u5b9f\u73fe\u3059\u308b\u65b9\u6cd5\u3092\u8003\u3048\u307e\u3059\u3002 \u30ea\u30b9\u30c8 \u4f8b\u306f\u7c21\u5358\u306a\u65b9\u304c\u3044\u3044\u306e\u3067\u3001\u30c7\u30fc\u30bf\u69cb\u9020\u3068\u3057\u3066 Lisp \u98a8\u306e\u30ea\u30b9\u30c8\u3092\u5b9a\u7fa9\u3057\u307e\u3057\u3087\u3046\u3002 data List a = Nil | Cons a (List a) deriving Show \u30ea\u30b9\u30c8\u306f\u3001\u3053\u3093\u306a\u98a8\u306b\u8868\u305b\u307e\u3059\u3002 Cons \"c\" (Cons \"b\" (Cons \"a\" Nil)) Lisp \u98a8\u306e cons \u3082\u5b9a\u7fa9\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002 cons :: a -> List a -> List a cons x xs = Cons x xs cons \"c\" $ cons \"b\" $ cons \"a\" Nil \u2192 Cons \"c\" (Cons \"b\" (\u2026","categories":["Haskell"],"version":"1.0","blog_url":"https://kazu-yamamoto.hatenablog.jp/","height":"190","provider_url":"https://hatena.blog","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkazu-yamamoto.hatenablog.jp%2Fentry%2F20080604%2F1212573964\" title=\"\u72b6\u614b\u30e2\u30ca\u30c9\u904a\u3073 - \u3042\u3069\u3051\u306a\u3044\u8a71\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","author_url":"https://blog.hatena.ne.jp/kazu-yamamoto/"}