{"blog_url":"https://unageanu.hatenablog.com/","height":"190","image_url":null,"type":"rich","width":"100%","version":"1.0","provider_name":"Hatena Blog","published":"2008-05-02 18:21:36","description":"ScalaByExample - Example4.2 Parameters\u3092\u8aad\u307f\u307e\u3057\u305f\u3002 \u5f15\u6570\u3092\u53d7\u3051\u4ed8\u3051\u308b\u95a2\u6570\u306e\u5b9a\u7fa9 \u300cdef () : = ...\u300d\u3068\u3057\u3066\u3001\u5f15\u6570\u3092\u6301\u3064\u95a2\u6570\u3092\u5b9a\u7fa9\u3067\u304d\u307e\u3059\u3002 // \u300cdef <\u540d\u524d>(<\u5f15\u6570>):<\u623b\u308a\u5024\u578b> => ...\u300d\u3067\u5f15\u6570\u3092\u53d7\u3051\u53d6\u308b\u95a2\u6570\u3092\u5b9a\u7fa9\u3067\u304d\u308b\u3002 def foo(i:int):int = 3*i println( foo(3) ) // 9 // \u2193\u3061\u306a\u307f\u306b\u3055\u3059\u304c\u306b\u3053\u3093\u306a\u3053\u3068\u306f\u3067\u304d\u306a\u3044 // val b(i:int);int = 3*i \u307e\u3041\u3001\u666e\u901a\u3067\u3059\u306d\u3002 \u5f15\u6570\u306e\u300c\u5024\u6e21\u3057\u300d\u3068\u300c\u53c2\u7167\u6e21\u3057\u300d \u5f15\u6570\u306b\u306f\u3001\u300c\u5024\u6e21\u3057\u300d\u3068\u300c\u540d\u524d\u6e21\u3057\u300d\u304c\u3042\u308a\u307e\u3059\u3002 \u5024\u6e21\u3057 \u95a2\u6570\u2026","blog_title":"\u3046\u306a\u306e\u65e5\u8a18","provider_url":"https://hatena.blog","title":"\u5f15\u6570\u3092\u53d7\u3051\u4ed8\u3051\u308b\u95a2\u6570\u306e\u5b9a\u7fa9/\u300c\u5024\u6e21\u3057\u300d\u3068\u300c\u53c2\u7167\u6e21\u3057\u300d","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Funageanu.hatenablog.com%2Fentry%2F20080502%2F1209720096\" title=\"\u5f15\u6570\u3092\u53d7\u3051\u4ed8\u3051\u308b\u95a2\u6570\u306e\u5b9a\u7fa9/\u300c\u5024\u6e21\u3057\u300d\u3068\u300c\u53c2\u7167\u6e21\u3057\u300d - \u3046\u306a\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Scala"],"author_url":"https://blog.hatena.ne.jp/unageanu/","url":"https://unageanu.hatenablog.com/entry/20080502/1209720096","author_name":"unageanu"}