{"provider_url":"https://hatena.blog","author_name":"Kazuhira","provider_name":"Hatena Blog","categories":["Scala","Clojure","Groovy"],"description":"\u3042\u307e\u308a\u4f7f\u3063\u305f\u3053\u3068\u304c\u306a\u3044\u306e\u3067\u3001\u30e1\u30e2\u3092\u517c\u306d\u3066\u8a66\u3057\u3066\u307f\u307e\u3059\u3002 Groovy Groovy\u306e\u5834\u5408\u306f\u3001Closure\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u5408\u6210\u3057\u307e\u3059\u3002\u4f7f\u7528\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u306f\u3001leftShift\uff08>\uff09\u3067\u3059\u3002 def add2 = { x -> x + 2 } def multiply3 = { x -> x * 3 } def multiply3AndAdd2 = add2 << multiply3 // f << g \u306f f(g(x)) def add2AndMultiply3 = add2 >> multiply3 // f >> g \u306f g(f(x)) println(multiply3AndAdd2(\u2026","image_url":null,"version":"1.0","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkazuhira-r.hatenablog.com%2Fentry%2F20120415%2F1334486571\" title=\"Groovy\u3001Scala\u3001Clojure\u3067\u95a2\u6570\u5408\u6210 - 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>","height":"190","blog_url":"https://kazuhira-r.hatenablog.com/","published":"2012-04-15 19:42:51","blog_title":"CLOVER\ud83c\udf40","url":"https://kazuhira-r.hatenablog.com/entry/20120415/1334486571","title":"Groovy\u3001Scala\u3001Clojure\u3067\u95a2\u6570\u5408\u6210","type":"rich","author_url":"https://blog.hatena.ne.jp/Kazuhira/"}