{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2016%2F02%2F09%2F000757\" title=\"\u306f\u3062\u3081\u3066\u306eHaskell(9) - \u3089\u3093\u3060\u3080\u306a\u8a18\u61b6\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","height":"190","published":"2016-02-09 00:07:57","version":"1.0","provider_url":"https://hatena.blog","width":"100%","blog_title":"\u3089\u3093\u3060\u3080\u306a\u8a18\u61b6","url":"https://randommemory.hatenablog.com/entry/2016/02/09/000757","type":"rich","blog_url":"https://randommemory.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/derwind/","author_name":"derwind","description":"\u306f\u3062\u3081\u3066\u306eHaskell(6) - \u3089\u3093\u3060\u3080\u306a\u8a18\u61b6\u3092\u3082\u3046\u5c11\u3057\u3060\u3051\u30de\u30b7\u306b\u3057\u305f\u3044\u3002 Recursion - Learn You a Haskell for Great Good!\u304f\u3089\u3044\u307e\u3067\u773a\u3081\u305f\u306e\u3067\u305d\u306e\u77e5\u8b58\u3067\u3002[prime3.hs] prime :: Int -> Bool prime n | n <= 1 = False | otherwise = prime_with_i n 2 where prime_with_i n i | i >= n = True | n `mod` i == 0 = False | otherwise = prime_with_i n (i+1) \u306a\u3069\u3068\u66f8\u3044\u3066\u307f\u3066\u3001\u2026","image_url":null,"title":"\u306f\u3062\u3081\u3066\u306eHaskell(9)","categories":["Haskell/Scala"]}