You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@crunch.apache.org by "Josh Wills (JIRA)" <ji...@apache.org> on 2014/06/17 02:53:03 UTC
[jira] [Created] (CRUNCH-422) Add collect(PartialFunction) methods
to Scrunch APIs
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)