Issue Details (XML | Word | Printable)

Key: GROOVY-1558
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Paul King
Reporter: Carlos Cadete
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
groovy

backward Array Sintax

Created: 19/Nov/06 07:05 AM   Updated: 03/Jul/07 05:33 AM   Resolved: 10/Jun/07 03:57 AM
Component/s: syntax
Affects Version/s: 1.0-JSR-6
Fix Version/s: 1.1-beta-2

Time Tracking:
Not Specified


 Description  « Hide

If I use backwards range like this:

x = "matrix"
println x[5..0]

I willl get : "xirtam".

But if I select, another index:

x = "matrix"
println x[0, 5..0]

The result is : mmatrix

Notice that it "is not" in reverse order! like I select in the range.



Paul King added a comment - 10/Jun/07 03:57 AM

Fixed in head