{"author_url":"https://blog.hatena.ne.jp/j5ik2o/","blog_title":"\u304b\u3068\u3058\u3085\u3093\u306e\u6280\u8853\u65e5\u8a8c","width":"100%","author_name":"j5ik2o","provider_name":"Hatena Blog","description":"\u3068\u308a\u3042\u3048\u305a\u3001\u30ea\u30b9\u30c8\u306e\u5ba3\u8a00 scala> var list = List(1,2,3,4,5) list: List[Int] = List(1, 2, 3, 4, 5)\u7e70\u308a\u8fd4\u3057\u51e6\u7406\u3092\u304b\u3044\u3066\u307f\u308b\u3002 scala> list.foreach(println) 1 2 3 4 5\u3053\u308c\u3082\u540c\u3058\u3053\u3068\u304c\u3067\u304d\u308b\u3002 scala> for( i <- list ) println(i) 1 2 3 4 5\u623b\u308a\u5024\u306f\u8fd4\u3057\u3066\u3044\u306a\u3044\u3002\u5076\u6570\u3060\u3051\u8fd4\u3059\u306b\u306f\u3053\u308c\u3002 scala> list.filter(i => i % 2 == 0) res20: List[Int] = List(2, 4)\u30a2\u30db\u307f\u305f\u3044\u306b\u7c21\u5358\u306b\u304b\u3051\u308b\u3002\u8868\u793a\u3057\u3066\u307f\u308b\u2026","image_url":null,"version":"1.0","provider_url":"https://hatena.blog","url":"https://blog.j5ik2o.me/entry/20101029/1288379093","height":"190","categories":["Scala","\u5099\u5fd8\u9332"],"title":" \u4eca\u65e5\u306eScala","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.j5ik2o.me%2Fentry%2F20101029%2F1288379093\" title=\" \u4eca\u65e5\u306eScala - \u304b\u3068\u3058\u3085\u3093\u306e\u6280\u8853\u65e5\u8a8c\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://blog.j5ik2o.me/","published":"2010-10-29 04:04:53","type":"rich"}