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

Add collect(PartialFunction) methods to Scrunch APIs

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8.4, 0.11.0
    • Component/s: Scrunch
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: