{"blog_title":"\u307f\u305a\u3074\u30fc\u65e5\u8a18","image_url":null,"url":"https://mzp.hatenadiary.org/entry/20090810/count","title":"\u4e00\u500b\u306e\u30ea\u30b9\u30c8\u304b\u3089\u4f55\u500b\u3082\u306e\u60c5\u5831\u3092\u3068\u308a\u3060\u3059\u30b3\u30fc\u30c9\u306f\u3069\u3046\u66f8\u304f\u306e\u304c\u3044\u3044\u3093\u3060\u308d\u3046","author_name":"mzp","categories":["Haskell"],"height":"190","version":"1.0","provider_name":"Hatena Blog","description":"\u4f8b\u3048\u3070\u3001\u4e0b\u306e\u884c\u6570\u30ab\u30a6\u30f3\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u66f8\u304f\u306e\u304c\u4e00\u756a\u30ad\u30ec\u30a4\u3060\u3068\u601d\u3046\u3002 -- xs\u304c\u5404\u30d5\u30a1\u30a4\u30eb\u306e\u884c\u6570\u306e\u30ea\u30b9\u30c8 -- (<100\u884c\u672a\u6e80\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u500b\u6570>, <100\u884c\u4ee5\u4e0a\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u500b\u6570>)\u3092\u8fd4\u3059 lineStatics :: [Int] -> (Int,Int) lineStatics xs = (length $ filter (< 100) xs, length $ filter (>= 100) xs) \u3067\u3082\u3001\u30ea\u30b9\u30c8\u3092\u4e8c\u56de\u3082\u8d70\u67fb\u3057\u3066\u308b\u306e\u304c\u7121\u99c4\u306a\u6c17\u304c\u3059\u308b\u3002\u3068\u3046\u3044\u3046\u308f\u3051\u3067\u3001fold\u3092\u4f7f\u3063\u3066\u66f8\u304d\u76f4\u3057\u305f\u308a\u3059\u308b\u3002 f (a,b) x = if x < 100 then (a+1,b) els\u2026","published":"2009-08-10 00:00:00","type":"rich","blog_url":"https://mzp.hatenadiary.org/","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/mzp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20090810%2Fcount\" title=\"\u4e00\u500b\u306e\u30ea\u30b9\u30c8\u304b\u3089\u4f55\u500b\u3082\u306e\u60c5\u5831\u3092\u3068\u308a\u3060\u3059\u30b3\u30fc\u30c9\u306f\u3069\u3046\u66f8\u304f\u306e\u304c\u3044\u3044\u3093\u3060\u308d\u3046 - \u307f\u305a\u3074\u30fc\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>","width":"100%"}