{"provider_url":"https://hatena.blog","description":"\u7121\u540d\u95a2\u6570 Anonymous Functions\u306b\u3064\u3044\u3066\u9806\u3092\u8ffd\u3063\u3066\u30fb\u30fbby ScalaByExample2\u3064\u306e\u6574\u6570\u3092\u5f15\u6570\u306b\u53d6\u308a\u3001\u305d\u306e\u9593\u306e\u6570\u306e\u5408\u8a08\u3092\u8a08\u7b97\u3059\u308b\u306b\u306f\u518d\u5e30\u306b\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3051\u307e\u3059\u3002 object Main extends Application { def sumInts(a: Int, b: Int): Int = if (a > b) 0 else a + sumInts(a + 1, b) println(sumInts(1, 3)) // 1+2+3 } \u5b9f\u884c\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002 6 \u3055\u3089\u306b\u30012\u3064\u306e\u6574\u6570\u3092\u5f15\u6570\u306b\u53d6\u308a\u3001\u305d\u306e\u9593\u306e\u6570\u306e2\u4e57\u3092\u5408\u8a08\u3059\u308b\u306b\u306f\u540c\u3058\u3088\u3046\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u2026","author_name":"Naotsugu","title":"\u7121\u540d\u95a2\u6570\u3068\u30ab\u30ea\u30fc\u5316","version":"1.0","url":"https://blog1.mammb.com/entry/20090616/1245164296","height":"190","provider_name":"Hatena Blog","categories":["Scala"],"type":"rich","blog_url":"https://blog1.mammb.com/","image_url":null,"blog_title":"A Memorandum","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog1.mammb.com%2Fentry%2F20090616%2F1245164296\" title=\"\u7121\u540d\u95a2\u6570\u3068\u30ab\u30ea\u30fc\u5316 - A Memorandum\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2009-06-16 23:58:16","author_url":"https://blog.hatena.ne.jp/Naotsugu/","width":"100%"}