{"title":"Scala\u306e\u57fa\u672c\u6587\u6cd5\uff08\u5fd8\u308c\u305d\u3046\u306a\u3082\u306e\uff09","provider_url":"https://hatena.blog","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmtoyoshi.hateblo.jp%2Fentry%2F2013%2F05%2F04%2F083937\" title=\"Scala\u306e\u57fa\u672c\u6587\u6cd5\uff08\u5fd8\u308c\u305d\u3046\u306a\u3082\u306e\uff09 - mtoyoshi\u958b\u767a\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>","provider_name":"Hatena Blog","image_url":null,"width":"100%","author_url":"https://blog.hatena.ne.jp/mtoyoshi/","url":"https://mtoyoshi.hateblo.jp/entry/2013/05/04/083937","categories":["scala"],"published":"2013-05-04 08:39:37","height":"190","blog_url":"https://mtoyoshi.hateblo.jp/","description":"for 1\u301c10\u307e\u30673\u523b\u307f\u3067\u3002 for(i 1<- 1 to 10 by 3) println(i) 1\u301c20\uff0820\u306f\u542b\u307e\u306a\u3044\uff09\u306e\u3046\u3061\u30012\u30683\u306e\u500d\u6570\u3060\u3051\u3002 for(i <- 1 until 20 if i % 2 == 0; i % 3 == 0) prinltn(i) 2\u91cd\u30eb\u30fc\u30d7 for(i <- 1 to 2; j <- 1 to 4) println(i + \"-\" + j) \u623b\u308a\u5024\u3092\u8fd4\u3059for\u3002 val result = for(i <- 1 to 10) yield i*2 // for-yield\u6587\u306f\u4ee5\u4e0b\u3068\u540c\u3058\u30a4\u30e1\u30fc\u30b8 val result = (1 to 10).map(_*2)\u2026","author_name":"mtoyoshi","blog_title":"mtoyoshi\u958b\u767a\u30e1\u30e2","version":"1.0"}