In Groovy we could already do this: where { it.toUpperCase() } is the closure. ... print list. collect { it.toUpperCase() }. // [A, B, C] ...
確定! 回上一頁