{"title":" \u3075\u3064\u3051\u308b(3) - 3\u7ae0(2) map","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboxnos.hatenablog.com%2Fentry%2F20080206%2F1202238216\" title=\" \u3075\u3064\u3051\u308b(3) - 3\u7ae0(2) map - \u30dc\u30af\u30ce\u30b9\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","author_name":"tanakaBox","image_url":null,"width":"100%","type":"rich","blog_title":"\u30dc\u30af\u30ce\u30b9","provider_name":"Hatena Blog","height":"190","url":"https://boxnos.hatenablog.com/entry/20080206/1202238216","version":"1.0","blog_url":"https://boxnos.hatenablog.com/","published":"2008-02-06 04:03:36","description":"3\u7ae0\u5f8c\u534a\u306fmap\u3063\u3059\u3002 car,cdr\u3092\u4f5c\u3063\u3066\u307f\u308b car,cdr\u304c\u7121\u3044\u3068\u601d\u3063\u305f\u3089\u3001\u30ca\u30f3\u30c0\u30b3\u30ec!! car :: [a] -> a car (x:xs) = x cdr :: [a] -> [a] cdr (x:xs) = xs \u5f15\u6570\u304c\u5206\u89e3\u51fa\u6765\u3061\u3083\u3046\u3089\u3057\u3044\u3002\u4e0d\u601d\u8b70\u306a\u4e16\u754c\u3060\u3002 map \u305d\u308c\u304c\u308f\u304b\u308c\u3070\u3001map\u306f\u7c21\u5358\u3067\u3001 my_map :: (a -> b) -> [a] -> [b] my_map f [] = [] my_map f (x:xs) = f x : my_map f xs \u3057\u304b\u3057\u3001\u8b0e\u904e\u304e\u308b\u3002 reverse\u3092\u66f8\u3044\u3066\u307f\u3088\u3046 map\u306e\u53cd\u5fa9\u7248\u3060\u304b\u3089\u3001 my_reverse_iter ::\u2026","author_url":"https://blog.hatena.ne.jp/tanakaBox/","categories":["Haskell"]}