Uploaded image for project: 'Crunch (Retired)'
  1. Crunch (Retired)
  2. CRUNCH-422

Add collect(PartialFunction) methods to Scrunch APIs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.8.4, 0.11.0
    • Scrunch
    • None

    Description

      Scala's collection types support a collect(PartialFunction) method that acts like a filter followed by a map, and is implemented by Scala's case syntax, as in this blog post:

      http://blog.bruchez.name/2011/10/scala-partial-functions-without-phd.html

      We should add some of this syntactic sugar to the Scrunch collection types.

      Attachments

        1. CRUNCH-422.patch
          5 kB
          Josh Wills

        Activity

          People

            jwills Josh Wills
            jwills Josh Wills
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: