{"title":"\u3080\u3080\u3080\u3080\u3080\u3080\u3080","blog_title":"\u4ed9\u53f0 Ruby Vim JavaScript \u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30d7\u30ed\u30b0\u30e9\u30de","image_url":null,"author_name":"yuichi_katahira","provider_url":"https://hatena.blog","categories":["Scala","Ruby"],"type":"rich","url":"https://katahirado.hatenablog.com/entry/20081209/1228784718","height":"190","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/yuichi_katahira/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkatahirado.hatenablog.com%2Fentry%2F20081209%2F1228784718\" title=\"\u3080\u3080\u3080\u3080\u3080\u3080\u3080 - \u4ed9\u53f0 Ruby Vim JavaScript \u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30d7\u30ed\u30b0\u30e9\u30de\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2008-12-09 10:05:18","version":"1.0","description":"Scala scala> def mystery(lst : List[Int]) = | (List[Int]() /: lst) ((x, y) => if (y % 2 == 0) x else x + y) warning: there were deprecation warnings; re-run with -deprecation for details mystery: (List[Int])List[Int] scala> mystery(List(1,2,3,4,5)) res32: List[Int] = List(1, 3, 5) \u3046\u30fc\u3093\u3001\u6319\u52d5\u7684\u306b\u306f\u3001x\u306e\u8a55\u4fa1\u306f\u306a\u3057\u3067\u2026","blog_url":"https://katahirado.hatenablog.com/","width":"100%"}