{"height":"190","title":"Scala\u306e\u95a2\u6570\u5b9a\u7fa9","type":"rich","categories":["Scala"],"provider_name":"Hatena Blog","author_name":"shigemk2","provider_url":"https://hatena.blog","blog_title":"by shigemk2","width":"100%","url":"https://www.shigemk2.com/entry/scala_function_declaration","description":"\u4ee5\u4e0b2\u3064\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u6319\u52d5\u304c\u9055\u3046\u3002\u4e0a\u306e\u95a2\u6570\u306e\u623b\u308a\u5024\u306fUnit \u4e0b\u306e\u95a2\u6570\u306e\u623b\u308a\u5024\u306fInt\u306b\u306a\u308b\u3002 def double(i: Int) { 2 * i } println(double(2)) def double(i: Int) = { 2 * i } println(double(2)) \u672c\u4f53\u306e\u524d\u306b\u7b49\u53f7\u3092\u6301\u3064\u30e1\u30bd\u30c3\u30c9\u3092\u95a2\u6570\u306e\u5b9a\u7fa9\u3068\u307f\u306a\u3057\u3001\u95a2\u6570\u578b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u304a\u3044\u3066\u95a2\u6570\u306f\u5e38\u306b\u5024\u3092\u8fd4\u3059\u3001\u3068\u306e\u3053\u3068\u3002 Programming Scala: Scalability = Functional Programming + Objects\u4f5c\u8005: Dean Wampler,Alex Payne\u51fa\u7248\u793e/\u30e1\u30fc\u30ab\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2Fscala_function_declaration\" title=\"Scala\u306e\u95a2\u6570\u5b9a\u7fa9 - by shigemk2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2015-09-25 23:11:05","image_url":"http://ecx.images-amazon.com/images/I/51IG1oJqtoL.jpg","author_url":"https://blog.hatena.ne.jp/shigemk2/","version":"1.0","blog_url":"https://www.shigemk2.com/"}