{"url":"https://hack-it-iron.hatenablog.com/entry/2016/12/08/175322","description":"2016/12/08\u306e30\u5206 Kotlin\u30e1\u30e2\ud83c\udf5f \u66f8\u3044\u3066\u308b\u30b3\u30fc\u30c9\u306f\u96d1\u306b\u3053\u3053\u306b\u3042\u308a\u307e\u3059\u3002 github.com Function Literals with Receiver kotlinlang.org \u306a\u3093\u304b\u3053\u3093\u306a\u30b3\u30fc\u30c9\u66f8\u3044\u3066\u307f\u305f\u3051\u3069\u3001\u4fbf\u5229\u305d\u3046\u3060\u3051\u3069\u3088\u304f\u308f\u304b\u3089\u306d\u30fc class Hello { fun world() { println(\"Hello,world\") } } fun hello(init: Hello.() -> Unit): Hello { val h = Hello() h.init() return h } hello { world() world() } \u4ee5\u4e0b\u3068\u304b\u3061\u3083\u2026","categories":["Kotlin"],"image_url":null,"blog_url":"https://hack-it-iron.hatenablog.com/","type":"rich","author_url":"https://blog.hatena.ne.jp/operando/","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhack-it-iron.hatenablog.com%2Fentry%2F2016%2F12%2F08%2F175322\" title=\"2016/12/08\u306e30\u5206 Kotlin\u30e1\u30e2\ud83c\udf5f - \u3084\u308b\u6c17 \u306a\u3044\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>","blog_title":"\u3084\u308b\u6c17 \u306a\u3044\u65e5\u8a18","author_name":"operando","published":"2016-12-08 17:53:22","title":"2016/12/08\u306e30\u5206 Kotlin\u30e1\u30e2\ud83c\udf5f","height":"190","width":"100%"}