-
Notifications
You must be signed in to change notification settings - Fork 603
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
Add withFilter
to Stream in order to filter in for comprehensions
#1971
Comments
I was convinced Scala falls back to |
@kubukoz It looks like it might have been removed. I am not totally familiar with it but I did find this: If I remove my [error] /Users/shogan/_Personal/scala_fp/fs2/core/shared/src/test/scala/fs2/StreamCombinatorsSuite.scala:1240:30: value withFilter is not a member of fs2.Stream[[x]fs2.Pure[x],Int]
[error] value <- Stream.range(0, 10)
[error] ^
[error] one error found |
Ah, i think I actually saw that. Thanks
…On Tue, Jul 28, 2020, 23:09 Stephen Hogan ***@***.***> wrote:
@kubukoz <https://github.com/kubukoz> It looks like it might have been
removed. I am not totally familiar with it but I did find this:
scala/bug#6455 <scala/bug#6455>
If I remove my withFilter method and try to use it in the for
comprehension in my test I get this error:
[error] /Users/shogan/_Personal/scala_fp/fs2/core/shared/src/test/scala/fs2/StreamCombinatorsSuite.scala:1240:30: value withFilter is not a member of fs2.Stream[[x]fs2.Pure[x],Int]
[error] value <- Stream.range(0, 10)
[error] ^
[error] one error found
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1971 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAG2PJHFOCFUHR5MJ4VGL5TR5447DANCNFSM4PK4S4VA>
.
|
mpilquist
added a commit
that referenced
this issue
Jul 29, 2020
Add `withFilter` to Stream in order to filter in for comprehensions #1971
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It was brought up in a few Gitter posts recently that it would be nice to have a
withFilter
alias forfilter
to allowStream
s to be used in for comprehensions.https://gitter.im/functional-streams-for-scala/fs2?at=5f0f056215779f6fdca8c090
https://gitter.im/functional-streams-for-scala/fs2?at=5f207b56e90668200523130e
I am planning on adding this and using this issue to track progress.
The text was updated successfully, but these errors were encountered: