-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 a samplePercent pipeline to randomly sample a stream #8058
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe just sample
?
I chose That said, I would not object to calling this one just |
I added one additional test and changed the name. |
That gets a bit to my other concern which is that sampling can be its own entire domain so potentially this belongs in a library that is based on ZIO Stream that focuses on that. |
I don't think I'm in a good position to design a larger stats / random based stream utilities module. I can see the need for |
Still want this contribution @adamgfraser? |
No description provided.