{"blog_title":"mtoyoshi\u958b\u767a\u30e1\u30e2","width":"100%","title":"Scala\u6d41\u30c0\u30c3\u30af\u30bf\u30a4\u30d4\u30f3\u30b0","height":"190","blog_url":"https://mtoyoshi.hateblo.jp/","version":"1.0","description":"ruby\u306e\u4f8b\u3002 def execute_with_log(f) puts \"start\" f.execute() puts \"end\" end \u3063\u3066\u5b9a\u7fa9\u3057\u3066\u304a\u3051\u3070\u3001\u5f15\u6570\u306b\u306fexecute\u30e1\u30bd\u30c3\u30c9\u3092\u6301\u3064\u30af\u30e9\u30b9\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u306a\u3093\u3067\u3082\u6e21\u305b\u308b\u3002 Java\u3067\u306f\u3053\u308c\u306f\u5b9f\u73fe\u3067\u304d\u306a\u304f\u3066\u3001\u5f15\u6570\u3067\u5ba3\u8a00\u3057\u305f\u578b\uff08\u3082\u3057\u304f\u306f\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\uff09\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304b\u3001\u305d\u306e\u30b5\u30d6\u30af\u30e9\u30b9\u306b\u9650\u5b9a\u3055\u308c\u308b\u3002 Scala\u3067\u306fStructural Type\u3068\u3044\u3046\u65b9\u6cd5\u3067\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u6069\u6075\u3092\u53d7\u3051\u306a\u304c\u3089\u3082\u30c0\u30c3\u30af\u30bf\u30a4\u30d4\u30f3\u30b0\u304c\u53ef\u80fd\u306b\u306a\u308b\u3002 class X { def exe(callable: { def call(num:Int):Unit; def c\u2026","type":"rich","author_name":"mtoyoshi","provider_url":"https://hatena.blog","url":"https://mtoyoshi.hateblo.jp/entry/2013/05/01/161743","categories":["scala"],"author_url":"https://blog.hatena.ne.jp/mtoyoshi/","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmtoyoshi.hateblo.jp%2Fentry%2F2013%2F05%2F01%2F161743\" title=\"Scala\u6d41\u30c0\u30c3\u30af\u30bf\u30a4\u30d4\u30f3\u30b0 - mtoyoshi\u958b\u767a\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2013-05-01 16:17:43","image_url":null}