{"version":"1.0","author_url":"https://blog.hatena.ne.jp/ha-tan/","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fha-tan.hatenadiary.org%2Fentry%2F20061010%2F1160480039\" title=\" \u30cb\u30e5\u30fc\u30c8\u30f3\u6cd5\u3067\u5e73\u65b9\u6839\u3092\u6c42\u3081\u308b - \u8da3\u5473\u7684\u306b\u3063\u304d\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","published":"2006-10-10 20:33:59","blog_url":"https://ha-tan.hatenadiary.org/","type":"rich","url":"https://ha-tan.hatenadiary.org/entry/20061010/1160480039","provider_name":"Hatena Blog","categories":["Haskell"],"title":" \u30cb\u30e5\u30fc\u30c8\u30f3\u6cd5\u3067\u5e73\u65b9\u6839\u3092\u6c42\u3081\u308b","image_url":null,"provider_url":"https://hatena.blog","blog_title":"\u8da3\u5473\u7684\u306b\u3063\u304d","description":"\u30cb\u30e5\u30fc\u30c8\u30f3\u6cd5\u3067\u5e73\u65b9\u6839\u3092\u6c42\u3081\u308b-\u6570\u5b66\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u6f14\u7fd2\u30ce\u30fc\u30c8-\u3092\u53c2\u8003\u306b\u30cb\u30e5\u30fc\u30c8\u30f3\u6cd5\u3067\u5e73\u65b9\u6839\u3092\u6c42\u3081\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002do {...} while\u306e\u30eb\u30fc\u30d7\u304c\u3001head $ dropWhile\u306b\u306a\u308a\u307e\u3057\u305f\u3002 module Main (main) where sqr :: Double -> Double sqr c = let x = head $ dropWhile (\\ x -> x * x < c) [1.0, 2.0 ..] in foldr (\\ _ x -> (x + c / x) / 2.0) x [1 .. 10] main :: IO () main = do print \u2026","author_name":"ha-tan"}