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

Enhance CharSequence with appropriate Iterable extension methods

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • groovy-jdk
    • None

    Description

      Groovy enables developers to treat {{CharSequence}}s as if they were true sequences. For example, you can use a for loop and the array index operator.

      Some extension methods are missing though. One I was hoping to find was the count(Closure) method. I think it makes sense to incorporate any Iterable extension methods into CharSequence as well.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pledbrook Peter Ledbrook
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: