Affects Version/s: None
Fix Version/s: None
Number of attachments :
As per the suggestion on this thread:
The idea is to have access to an index or counter in all the functional methods iterating over collections, by using an additional parameter in the closure passed in parameter of those methods. That way, we don't need to add as many *withIndex variant methods to the existing ones, but rather provide a convenient convention.
Some examples with each, and similarly by replacing each with find/findAll/any/every/collect and perhaps inject:
|Fix Version/s||1.6.x [ 15537 ]|
|Fix Version/s||1.7.x [ 15538 ]|