crunch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Wills (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CRUNCH-422) Add collect(PartialFunction) methods to Scrunch APIs
Date Tue, 17 Jun 2014 00:53:03 GMT
Josh Wills created CRUNCH-422:
---------------------------------

             Summary: Add collect(PartialFunction) methods to Scrunch APIs
                 Key: CRUNCH-422
                 URL: https://issues.apache.org/jira/browse/CRUNCH-422
             Project: Crunch
          Issue Type: Improvement
          Components: Scrunch
            Reporter: Josh Wills
            Assignee: Josh Wills


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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message