Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@paulpdaniels
Copy link
Contributor

Adds withFilter to ZStream so that we can use guard clauses in for-comprehensions

@paulpdaniels paulpdaniels requested a review from iravid as a code owner May 18, 2020 14:48
@luis3m
Copy link
Contributor

luis3m commented May 18, 2020

As a note, for better or worse the following code would filter None out:

for {
  value       <- stream0
  Some(other) <- stream1
} yield (value, other)

@paulpdaniels
Copy link
Contributor Author

@luis3m expected though right? I assume that doesn't even compile now?

@luis3m
Copy link
Contributor

luis3m commented May 18, 2020

@paulpdaniels I think that behavior makes sense here, yes.

@iravid iravid merged commit 6fb80a5 into zio:master May 18, 2020
@paulpdaniels paulpdaniels deleted the zstream-with-filter branch May 19, 2020 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants