Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-924

implement list.putAt(Range) to work like list.putAt(splice)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-2
    • 1.0-JSR-3
    • groovy-jdk
    • None

    Description

      list = [0,1,2,3,4,5]
      assert list[0,1] == list[0..0]
      assert list[2,3] == list[2..5]

      list[2..5] = [x]
      assert list == [0,1,x]

      list[2..2] = [2,3,4,5]
      assert list == [0,1,2,3,4,5]

      Attachments

        Issue Links

          Activity

            People

              codevise Dierk König
              codevise Dierk König
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: