{"description":"\u300cLearn You a Haskell for Great Good!\u300d\u306e\u300cReverse Polish notation calculator\u300d\u3092\u8a08\u7b97\u9014\u4e2d\u306e\u69d8\u5b50\u3092\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u305f\u3002 import Data.List import Debug.Trace solveRPN :: String -> Float solveRPN = head . foldl foldingFunction [] . words where foldingFunction stack \"*\" = traceShow stack \"*\" (*) foldingFunction stack \"+\" = t\u2026","blog_title":"sirocco \u306e\u66f8\u3044\u3066\u3082\u3059\u3050\u306b\u5fd8\u308c\u308b\u30e1\u30e2","blog_url":"https://sirocco.hatenadiary.org/","categories":["Haskell"],"type":"rich","provider_url":"https://hatena.blog","title":"\u9006\u30dd\u30fc\u30e9\u30f3\u30c9\u8a18\u6cd5\u8a08\u7b97\u6a5f","published":"2011-05-22 16:17:04","author_url":"https://blog.hatena.ne.jp/sirocco/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20110522%2F1306048624\" title=\"\u9006\u30dd\u30fc\u30e9\u30f3\u30c9\u8a18\u6cd5\u8a08\u7b97\u6a5f - sirocco \u306e\u66f8\u3044\u3066\u3082\u3059\u3050\u306b\u5fd8\u308c\u308b\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"sirocco","height":"190","version":"1.0","url":"https://sirocco.hatenadiary.org/entry/20110522/1306048624","image_url":null,"width":"100%","provider_name":"Hatena Blog"}