{"description":"Ruby \u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5de6\u304b\u3089\u53f3\u306b\u6d41\u308c\u3066\u884c\u304d\u307e\u3059\u3002 total = 0 (1..100).map{|x| x*2}.select{|x| x%6== 0}.each{|x|total+=x} print total # => 3366 Haskell \u3060\u3068\u53f3\u304b\u3089\u5de6\u306b\u6d41\u308c\u307e\u3059\u306e\u3067\u5de6\u304b\u3089\u53f3\u3078\u6587\u5b57\u3092\u66f8\u3044\u3066\u3044\u308b\u6c11\u65cf\u3068\u3057\u3066\u306f\u3084\u3084\u4e0d\u81ea\u7136\u306a\u3068\u3053\u308d\u304c\u3042\u308a\u307e\u3059\u3002 > sum $ filter (\\x -> x `mod` 6 == 0) $ map (*2) [1..100] -- => 3366 kazu-yamamoto\u3055\u3093\u306e\u300c\u3042\u3069\u3051\u306a\u3044\u8a71\u300d\u306b\u300cF# \u3092\u307e\u306d\u308b\u300d\u3068\u8a00\u3046\u8a18\u4e8b\u304c\u3042\u308a\u307e\u3057\u305f\u3002 -- \u95a2\u6570\u3068\u5f15\u6570\u3092\u2026","version":"1.0","type":"rich","published":"2011-04-16 23:39:05","provider_url":"https://hatena.blog","height":"190","image_url":null,"author_name":"sirocco","author_url":"https://blog.hatena.ne.jp/sirocco/","title":"\u300cF# \u3092\u307e\u306d\u308b\u300d\u3092\u307e\u306d\u308b","blog_url":"https://sirocco.hatenadiary.org/","blog_title":"sirocco \u306e\u66f8\u3044\u3066\u3082\u3059\u3050\u306b\u5fd8\u308c\u308b\u30e1\u30e2","width":"100%","provider_name":"Hatena Blog","categories":["Haskell"],"url":"https://sirocco.hatenadiary.org/entry/20110416/1302964745","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20110416%2F1302964745\" title=\"\u300cF# \u3092\u307e\u306d\u308b\u300d\u3092\u307e\u306d\u308b - sirocco \u306e\u66f8\u3044\u3066\u3082\u3059\u3050\u306b\u5fd8\u308c\u308b\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}