{"url":"https://bitterharvest.hatenablog.com/entry/2015/02/24/092713","height":"190","blog_url":"https://bitterharvest.hatenablog.com/","provider_url":"https://hatena.blog","image_url":"http://cdn-ak.f.st-hatena.com/images/fotolife/b/bitterharvest/20150222/20150222155923.png","title":"Haskell\u3067\u5b66\u3076\u570f\u8ad6\u30fb\u30a6\u30a9\u30fc\u30e0\u30a2\u30c3\u30d7\u7de8\u3000\u96c6\u5408\u5185\u306e\u5199\u50cf(Endomap)","provider_name":"Hatena Blog","author_name":"bitterharvest","author_url":"https://blog.hatena.ne.jp/bitterharvest/","width":"100%","type":"rich","categories":["Haskell\u3067\u5b66\u3076\u570f\u8ad6\u30fb\u30a6\u30a9\u30fc\u30e0\u30a2\u30c3\u30d7\u7de8"],"version":"1.0","published":"2015-02-24 09:27:13","blog_title":"bitterharvest\u2019s diary","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbitterharvest.hatenablog.com%2Fentry%2F2015%2F02%2F24%2F092713\" title=\"Haskell\u3067\u5b66\u3076\u570f\u8ad6\u30fb\u30a6\u30a9\u30fc\u30e0\u30a2\u30c3\u30d7\u7de8\u3000\u96c6\u5408\u5185\u306e\u5199\u50cf(Endomap) - bitterharvest\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\uff11\uff0e\u96c6\u5408\u5185\u306e\u5199\u50cf \u96c6\u5408\u9593\u306e\u5199\u50cf\u3092\u5b66\u3093\u3060\u306e\u3067\u3001\u96c6\u5408\u5185\u306e\u5199\u50cf\u304c\u3069\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u3092\u89b3\u5bdf\u3057\u3066\u307f\u308b\u3002\u96c6\u5408\u5185\u306e\u5199\u50cf\u306f\u3001\u7279\u5225\u306b\u3001endomap\u3068\u547c\u3070\u308c\u308b\u3002\u524d\u56de\u306e\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u305f\u96c6\u5408\u9593\u306e\u5168\u3066\u306e\u5199\u50cf\u3092\u6c42\u3081\u308b\u95a2\u6570mapping m n\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u305f\u3002 module Mapping where mapping' :: a -> [b] -> [(a,b)] mapping' y n = map (\\x -> (y,x)) n mapping :: [a] -> [b] -> [[(a,b)]] mapping [] _ = [[]] mapping (m:mx) n = [[x] ++ y | x <-\u2026"}