-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Observable.collect #4
Comments
@experquisite do you mean the def collect[B, That](pf: PartialFunction[A, B])(implicit bf: CanBuildFrom[List[A], B, That]): That I think it's helpful. Do you think the following API is what you want? def collect[B](pf: PartialFunction[A, B]): Observable[B] |
I'll add it once the build script is set up. |
Yes that would be most excellent. Thanks! |
Cool. |
+1 There are actually quite a few methods on Scala collections which are not in RxJava, but would be useful in RxScala. We noticed this a long time ago already, but so far no one checked all Scala collection methods on whether they would be useful in RxJava. Quoting the outdated TODO list:
|
Go ahead and start working in this code base. This new repo will be for 0.21 and beyond. We can't release anything yet and don't have PR auto building right now, but dev can continue with PRs being tested on local dev machines. |
|
Close as already added in ReactiveX/RxJava#1623 |
Update the signature of flatMapWith and fix the Subject doc
Similar to other Scala collections, it would be very helpful to have a collect(), taking the usual partial function, to simultaneously filter and map. An example use case is unwrapping one of several case classes with a single partial match and forwarding on the contents, useful for processing one message type out of several flowing on the observable.
The text was updated successfully, but these errors were encountered: