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

A .map of an integer list passes in an IntRange rather than each integer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • 1.0-beta-3
    • None
    • None

    Description

      The following groovy snippet throws an exception because an IntRange is passed into charAt instead of an int:

      charList = [0..10].map

      { "supercalifragilisticexpialidocious".charAt(it) }

      Attachments

        Activity

          People

            Unassigned Unassigned
            nstimm Sean Timm
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: