Groovy 1.8 のクロージャ合成の機能を試したついでに、Scala, F#, Haskell での関数合成の機能も簡単にまとめてみました。 サンプルのソースコードは http://github.com/fits/try_samples/tree/master/blog/20101213/ Groovy の場合 Groovy では >> や << を使います。(1.8 から導入された Closure composition の機能) Groovy 1.8.0 beta2 compose_sample.groovy def plus = {x -> x + 3} def times = {x -> x * 2} def f = plus >> times def g = plus << times // times(plus(4)) = 14 println f(4) // plus(t