{"published":"2009-11-12 00:00:00","blog_url":"https://yarb.hatenadiary.org/","author_url":"https://blog.hatena.ne.jp/yarb/","width":"100%","version":"1.0","height":"190","description":"Haskell\u306e\u57fa\u672c\u52d5\u4f5c\u3042\u308c\u3053\u308c\u3092\u5c11\u3057\u3002\u30eb\u30fc\u30d7\u306f\u30a2\u30ad\u30e5\u30e0\u30ec\u30fc\u30bf\u3092\u518d\u5e30\u3067\u6e21\u3057\u3066\u5b9f\u73fe\u3002\u3057\u304b\u3057\u3001\u30d7\u30e9\u30a4\u30e0\u3067\u5225\u306e\u5024\u3092\u4f5c\u308b\u306e\u3063\u3066\u52b9\u7387\u60aa\u304f\u306a\u3044\u306e\u304b\u3057\u3089\u3002\u4ee5\u4e0b\u306e\u4f8b\u306f10\u9032\u6570\u306e\u6570\u5024\u3092\u8868\u3059\u6587\u5b57\u5217\u3092\u6570\u5024\u306b\u5909\u63db\u3059\u308b\u3002 import Data.Char asInt :: String -> Int asInt xs = loop 0 xs loop :: Int -> String -> Int loop acc [] = acc loop acc (x:xs) = let acc' = acc * 10 + digitToInt x in loop acc' xs % ghci GHCi, version 6.8.\u2026","author_name":"yarb","title":"\u307e\u305fHaskell\u57fa\u672c","blog_title":"yarb\u306e\u65e5\u8a18","url":"https://yarb.hatenadiary.org/entry/20091112/p1","categories":["haskell"],"type":"rich","provider_name":"Hatena Blog","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyarb.hatenadiary.org%2Fentry%2F20091112%2Fp1\" title=\"\u307e\u305fHaskell\u57fa\u672c - yarb\u306e\u65e5\u8a18\" 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"}