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

A counterpart to diff #400

Open
dbeacham opened this issue Sep 23, 2020 · 0 comments
Open

A counterpart to diff #400

dbeacham opened this issue Sep 23, 2020 · 0 comments

Comments

@dbeacham
Copy link

I have a few properties that I want to check that are best expressed as negations, so rather than

diff x op y

I end up with

diff x ((not .) . op) y

I can obviously define a helper for my use case

undiff x op y = diff x ((not .) . op) y

but might be useful to have such a function in the library? Although I haven't thought of a good name for it.

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

No branches or pull requests

1 participant