{"provider_url":"https://hatena.blog","blog_title":"Lambda\u30ab\u30af\u30c6\u30eb","author_name":"Windymelt","categories":["scala","implicit-def","\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"type":"rich","title":"implicit def\u3067\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u5909\u63db\u3059\u308b","provider_name":"Hatena Blog","height":"190","version":"1.0","blog_url":"https://blog.3qe.us/","published":"2013-02-03 02:55:32","author_url":"https://blog.hatena.ne.jp/Windymelt/","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.3qe.us%2Fentry%2F20130203%2F1359914132\" title=\"implicit def\u3067\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u5909\u63db\u3059\u308b - Lambda\u30ab\u30af\u30c6\u30eb\" 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%","description":"\u3042\u308b\u578bBase\u3092\u5f15\u6570\u306b\u53d6\u308b\u3088\u3046\u306a\u30b3\u30f3\u30c6\u30af\u30b9\u30c8\u3067\u4ed6\u306e\u578b\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u4f7f\u304a\u3046\u3068\u3059\u308b\u3068\u3001\u5f53\u7136\u3001\u901a\u5e38\u306a\u3089\u3070\u30b3\u30f3\u30d1\u30a4\u30e9\u304c\u30a8\u30e9\u30fc\u3092\u5410\u304f\u3002 //example class DrinkContent(receipt: String) { val receiptVal = receipt def drink = {System.out.println(receiptVal)} } class PetBottle(content: DrinkContent) { var contentVal = content } REPL> new DrinkContent(\"Orange\") .drink // \"Oran\u2026","url":"https://blog.3qe.us/entry/20130203/1359914132"}