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

preferThis/preferThat #170

Open
sullyj3 opened this issue Nov 1, 2021 · 0 comments
Open

preferThis/preferThat #170

sullyj3 opened this issue Nov 1, 2021 · 0 comments

Comments

@sullyj3
Copy link

sullyj3 commented Nov 1, 2021

preferThis :: These a a -> a
preferThis = mergeThese const

preferThat :: These a a -> a
preferThat = mergeThese $ flip const

These functions come in handy as arguments to alignWith in cases where you want to prioritize one side or the other. Would a PR for this be welcome?

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