例如
def numbers = [4,8] def numbersPlusTen = numbers*.{it -> it + 10}
或者,差价操作符是否只能处理方法或财产?
def numbers = [4,8] java.lang.Integer.MetaClass.something = {delegate + 10} def numbersPlusTen = numbers*.something()