Skip to content

Comments

Add functions#2

Open
NJichev wants to merge 2 commits intomasterfrom
add-functions
Open

Add functions#2
NJichev wants to merge 2 commits intomasterfrom
add-functions

Conversation

@NJichev
Copy link
Owner

@NJichev NJichev commented Jun 5, 2018

Added functions by doing the following:

Generate n-arguments as given by user.
Generate the return type generator.
Use :erlang.phash2 on [args] to create a new seed.
Every time seed the type generator with the new seed to get different outputs for different arguments.

Tried moving the function body to be it's own private macro, but couldn't get it to work, so left it as is.

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