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

DGM should have a getAt method for Iterable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.5
    • 2.1.0-beta-1
    • groovy-jdk
    • None

    Description

      This should work (as well as custom Iterables):

      final set = [1,2,3] as LinkedHashSet
      assert set[1] == 2
      

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: