Collection findAllResults in Groovy 1.7.5
Groovy 1.7.5 claims to have both findResult
and findAllResults
. But when I try, it seems to have only findResult
. fi开发者_JAVA百科ndAllResults
is not included in the groovy jdk documentation, either. Am I not reading it thoroughly?
If you read the comments in that issue, (Ted Naleid added a comment - 19/Jun/10 10:46 PM) says that findAllResults was removed as it can be easily achieved with an inject in it's place
As a follow up, this has been implemented as of Groovy 1.8.1 as findResults
instead of findAllResults
. It's cleaner than using inject
in many situations.
精彩评论