groovy

backward Array Sintax

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.0-JSR-6
  • Fix Version/s: 1.1-beta-2
  • Component/s: syntax
  • Labels:
    None
  • Number of attachments :
    0

Description

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.

Activity

Hide
Paul King added a comment -

Fixed in head

Show
Paul King added a comment - Fixed in head

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: