{"title":"Scala 2.10.0 Dependent method types","author_name":"Kazuhira","author_url":"https://blog.hatena.ne.jp/Kazuhira/","categories":["Scala"],"image_url":null,"type":"rich","provider_url":"https://hatena.blog","published":"2013-01-15 22:20:49","version":"1.0","blog_title":"CLOVER\ud83c\udf40","url":"https://kazuhira-r.hatenablog.com/entry/20130115/1358256049","blog_url":"https://kazuhira-r.hatenablog.com/","provider_name":"Hatena Blog","description":"\u4ee5\u4e0b\u306e\u65b0\u6a5f\u80fd\u7d39\u4ecb\u306e\u90e8\u5206\u306b\u306f\u3001 http://www.scala-lang.org/node/27499 \u3053\u3093\u306a\u611f\u3058\u306b\u3057\u304b\u7d39\u4ecb\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u304c\u3001 def identity(x: AnyRef): x.type = x // the return type says we return exactly what we got Dependent method types\u306b\u3064\u3044\u3066\u3061\u3087\u3063\u3068\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u3068\u308a\u3042\u3048\u305a\u3001\u3053\u3093\u306a\u30b3\u30fc\u30c9\u3092\u7528\u610f\u3002 DependentMethodType.scala object DependentMethodType { def main(args: Array[String]\u2026","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkazuhira-r.hatenablog.com%2Fentry%2F20130115%2F1358256049\" title=\"Scala 2.10.0 Dependent method types - CLOVER\ud83c\udf40\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%"}