{"blog_url":"https://zehnpaard.hatenablog.com/","version":"1.0","title":"Thinking Functionally with Haskell\u52c9\u5f37\u30e1\u30e2: \u7b2c\uff15\u7ae0\u554f\u984c","type":"rich","url":"https://zehnpaard.hatenablog.com/entry/2018/03/22/112423","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fzehnpaard.hatenablog.com%2Fentry%2F2018%2F03%2F22%2F112423\" title=\"Thinking Functionally with Haskell\u52c9\u5f37\u30e1\u30e2: \u7b2c\uff15\u7ae0\u554f\u984c - Arantium Maestum\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"Arantium Maestum","description":"Exercise A Matrix Int\u306e\u3059\u3079\u3066\u306e\u8981\u7d20\u306b\uff11\u3092\u8db3\u3059\u95a2\u6570\uff1a addOneToAll = map (map (+1)) Matrix Int\u306e\u3059\u3079\u3066\u306e\u8981\u7d20\u306e\u548c\uff1a sumAll = sum . sum sum :: Row Int -> Int sum [] = 0 sum x:xs = x + sum xs \u4e8c\u3064\u306eMatrix Int\u306e\u5404\u8981\u7d20\u3092\u8db3\u3059\u95a2\u6570\uff1a addMatrix :: Matrix Int -> Matrix Int -> Matrix Int addMatrix = zipWith (zipWith (+)) Matrix multiplication: matMul\u2026","author_url":"https://blog.hatena.ne.jp/zehnpaard/","image_url":null,"height":"190","width":"100%","provider_name":"Hatena Blog","author_name":"zehnpaard","categories":["Haskell","Thinking Functionally with Haskell"],"published":"2018-03-22 11:24:23"}