show = { println it } square_root = { Math.sqrt(it) } def please(action) { [the: { what -> [of: { n -> action(what(n)) }] }] } please show the square_root of 100
groovy DSL
原文:https://www.cnblogs.com/amize/p/15029731.html