{"provider_name":"Hatena Blog","categories":["scala"],"author_name":"mtoyoshi","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmtoyoshi.hateblo.jp%2Fentry%2F2013%2F05%2F01%2F225406\" title=\"\u95a2\u6570\u306b\u3064\u3044\u3066 - 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>","blog_url":"https://mtoyoshi.hateblo.jp/","height":"190","author_url":"https://blog.hatena.ne.jp/mtoyoshi/","title":"\u95a2\u6570\u306b\u3064\u3044\u3066","published":"2013-05-01 22:54:06","url":"https://mtoyoshi.hateblo.jp/entry/2013/05/01/225406","description":"\u95a2\u6570\u5b9a\u7fa9 \u901a\u5e38\u306f\u30e1\u30bd\u30c3\u30c9\u3068\u3057\u3066\u5ba3\u8a00\u3055\u308c\u308b\u3002 def \u95a2\u6570\u540d[\u578b\u30d1\u30e9\u30e1\u30fc\u30bf](\u5f15\u6570\u540d:\u5f15\u6570\u306e\u578b\u540d,\u2026\u2026):\u8fd4\u308a\u5024 = \u95a2\u6570\u672c\u4f53 \u305f\u3068\u3048\u3070\u3001 def sum(x:Int, y:Int) = x + y \u95a2\u6570\u30ea\u30c6\u30e9\u30eb \u5909\u6570\u306b\u4ee3\u5165\u53ef\u80fd\u3002\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u3068\u3057\u3066\u3082\u3002 (\u5909\u6570\u540d:\u578b\u540d,\u2026\u2026) => \u95a2\u6570\u672c\u4f53 \u305f\u3068\u3048\u3070\u3001 val sum = (x:Int, y:Int) => x + y \u9ad8\u968e\u95a2\u6570 \u5f15\u6570\u306b\u95a2\u6570\u3092\u3068\u308b\u95a2\u6570\u3002 \u7b2c\u4e00\u5f15\u6570\u304cInt\u3067\u3001\u7b2c\u4e8c\u5f15\u6570\u306f\u95a2\u6570\u3002\u7b2c\u4e00\u5f15\u6570\u306e\u6570\u5b57\u3092\u306a\u3093\u3089\u304b\u52a0\u5de5\u3057\u3066\u8fd4\u3059\u95a2\u6570\u3092\u3068\u308b\u3002 def exe(x:Int, func:(Int)=>Int) = { println(x + \" -> \u2026","width":"100%","image_url":null,"provider_url":"https://hatena.blog","blog_title":"mtoyoshi\u958b\u767a\u30e1\u30e2","type":"rich","version":"1.0"}