Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.5.4
-
Fix Version/s: 1.5.5, 1.6-beta-1
-
Component/s: groovy-jdk
-
Labels:None
-
Number of attachments :
Description
It would be good to be able to support an index on eachLine as follows:
file.eachLine { line, count -> println "$count > $line" }
The reported line numbers should start with 0. See http://jira.codehaus.org/browse/GROOVY-2905.