{"title":" implicit parameter \u30e1\u30e2","categories":["Scala"],"version":"1.0","author_url":"https://blog.hatena.ne.jp/faith_and_brave/","provider_url":"https://hatena.blog","url":"https://faithandbrave.hateblo.jp/entry/20080509/1210349806","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20080509%2F1210349806\" title=\" implicit parameter \u30e1\u30e2 - Faith and Brave - C++\u3067\u904a\u307c\u3046\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","image_url":null,"blog_title":"Faith and Brave - C++\u3067\u904a\u307c\u3046","description":"\u307e\u3060\u3088\u304f\u308f\u304b\u3063\u3066\u306a\u3044\u3051\u3069\u30e1\u30e2 object Main { trait Adder[T] { def add(lhs: T, rhs: T): T } // int\u578b\u306e + \u51e6\u7406 implicit object IntAdder extends Adder[int] { def add(lhs: int, rhs: int): int = lhs + rhs } // String\u578b\u306e + \u51e6\u7406 implicit object StringAdder extends Adder[String] { def add(lhs: String, rhs: String): String = lhs +\u2026","width":"100%","blog_url":"https://faithandbrave.hateblo.jp/","provider_name":"Hatena Blog","type":"rich","author_name":"faith_and_brave","published":"2008-05-09 01:16:46"}