{"description":"\u3069\u3046\u306b\u304b\u3053\u3053\u307e\u3067\u6574\u7406\u3002 module Main (main) where import Text.ParserCombinators.Parsec -- \u6570\u5f0f\u306e\u8981\u7d20(\u56db\u5247\u6f14\u7b97\u306e\u6f14\u7b97\u5b50\u3068\u6574\u6570\u5024) data Elem = Plus | Minus | Times | Divide | Value Integer -- \u5f8c\u7f6e\u6cd5(\u9006\u30dd\u30fc\u30e9\u30f3\u30c9)\u3067\u683c\u7d0d\u3055\u308c\u305f\u8981\u7d20\u3092\u8a08\u7b97\u3059\u308b\u95a2\u6570 calc :: [Elem] -> Integer calc es = calc' es [] where calc' :: [Elem] -> [Integer] -> Integer calc' [] [n] = n calc\u2026","categories":["Haskell"],"author_name":"E_Mattsan","blog_url":"https://blog.emattsan.org/","blog_title":"\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u7684\u611b\u60c5","provider_name":"Hatena Blog","image_url":null,"published":"2007-04-13 22:29:48","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.emattsan.org%2Fentry%2F20070413%2F1176470988\" title=\"\u8a08\u7b97\u6a5f\u3001\u306e\u30d1\u30fc\u30b5\u3001\u305d\u306e3 - \u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u7684\u611b\u60c5\" 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_url":"https://blog.hatena.ne.jp/E_Mattsan/","type":"rich","height":"190","version":"1.0","title":"\u8a08\u7b97\u6a5f\u3001\u306e\u30d1\u30fc\u30b5\u3001\u305d\u306e3","width":"100%","url":"https://blog.emattsan.org/entry/20070413/1176470988"}