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

Remove Gen.eval and refactor Gen.sample #383

Merged
merged 2 commits into from
Sep 2, 2017
Merged

Conversation

kurtschelfthout
Copy link
Member

@kurtschelfthout kurtschelfthout commented Sep 1, 2017

Fixes #268 and fixes #236.

I actually agree that eval is confusing so I've removed it.

I added extra functions in F# and overloads in C# of sample instead:
sample takes a desired number of values
sampleWithSize takes size in addition
sampleWithSeed takes seed in addition to make it deterministic

In C# the API is much nicer, there is just one Sample extension method on Gen with optional seed and size arguments.

@kurtschelfthout kurtschelfthout changed the title Remove Gen.eval. Remove Gen.eval and refactor Gen.sample. Sep 1, 2017
@kurtschelfthout kurtschelfthout changed the title Remove Gen.eval and refactor Gen.sample. Remove Gen.eval and refactor Gen.sample Sep 1, 2017
@kurtschelfthout kurtschelfthout merged commit 7e6122d into fscheck3 Sep 2, 2017
@kurtschelfthout kurtschelfthout deleted the fscheck3-eval branch September 2, 2017 20:31
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.

1 participant