{"width":"100%","title":"\u306f\u3062\u3081\u3066\u306eHaskell(6)","type":"rich","image_url":null,"blog_url":"https://randommemory.hatenablog.com/","url":"https://randommemory.hatenablog.com/entry/2016/01/17/154036","version":"1.0","height":"190","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2016%2F01%2F17%2F154036\" title=\"\u306f\u3062\u3081\u3066\u306eHaskell(6) - \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>","description":"ghci\u306e\u4e2d\u30671\u884c\u3067\u5b9a\u7fa9\u3057\u3066\u307f\u308b\u3002\u307e\u305a\u306f\u3001\u7d50\u5408\u306e\u95a2\u4fc2\u304b\u3089\u307e\u305a\u3044\u3067\u3042\u308d\u3046\u30d1\u30bf\u30fc\u30f3\u3002 Prelude> let prime x i = if i >= x then True else if x `mod` i == 0 then False else prime x i+1 <interactive>:13:85: Could not deduce (Num Bool) arising from a use of `+' from the context (Integral a) bound by the inferred type of prime :: Integral a => a -> \u2026","published":"2016-01-17 15:40:36","blog_title":"\u3089\u3093\u3060\u3080\u306a\u8a18\u61b6","categories":["Haskell/Scala"],"provider_name":"Hatena Blog","author_name":"derwind","author_url":"https://blog.hatena.ne.jp/derwind/"}