Adam Schmideg
Adam Schmideg

Reputation: 10860

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. findAllResults is not included in the groovy jdk documentation, either. Am I not reading it thoroughly?

Upvotes: 1

Views: 174

Answers (2)

Ted Naleid
Ted Naleid

Reputation: 26821

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.

Upvotes: 3

tim_yates
tim_yates

Reputation: 171194

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

Upvotes: 3

Related Questions