摘要:
为什么要使用闭包 # 参考 https://juejin.cn/post/6844903878111019022 # 闭包模板 def closure4 = { x, y -> println("x is ${x}, y is ${y}") } // 省略类型 Closure closure6 = 阅读全文
摘要:
show = { println it } square_root = { Math.sqrt(it) } def please(action) { [the: { what -> [of: { n -> action(what(n)) }] }] } please show the square_ 阅读全文