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

Skip to content

Conversation

@simpadjo
Copy link
Contributor

Closes #3818
This fix looks like a dirty hack but this is fine.
grouped is implemented using Transducer.
Empty output is a valid output of the transducer (it has to emit something).
So we have to filter-out empty chunks explicitly.

@simpadjo simpadjo requested a review from iravid as a code owner June 16, 2020 09:44
@iravid
Copy link
Member

iravid commented Jun 16, 2020

I’m not in front of the code so I don’t understand why would collectAllN emit empty elements. It can just emit an empty chunk with no elements.

But happy to merge this to get into the next release.

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.

ZStream.grouped can return empty Lists

2 participants