Skip to content
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

Avoid filtering in nonEmptyBuildableOf. #709

Merged
merged 1 commit into from
Nov 6, 2020

Conversation

non
Copy link
Contributor

@non non commented Nov 6, 2020

Previously we used the standard buildableOf and just filtered out empty
collections. However, given that the underlying methods support a size
parameter it's just as easy to inline buildableOf's implementation and
start the minimum size at 1, not 0.

Fixes #708

Previously we used the standard buildableOf and just filtered out empty
collections. However, given that the underlying methods support a size
parameter it's just as easy to inline buildableOf's implementation and
start the minimum size at 1, not 0.

Fixes typelevel#708
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.

nonEmptyListOf.sample started to return None
2 participants