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

Cleanup is_greater_better function #76

Merged
merged 5 commits into from
Sep 24, 2018
Merged

Cleanup is_greater_better function #76

merged 5 commits into from
Sep 24, 2018

Conversation

Doppe1g4nger
Copy link
Contributor

Making explicit sets containing desired high/low values adds to readability. Checking existence in sets is also faster than using lists. Also added sanity check against existence in both sets and factored things to only have one exit point for the function.

@Doppe1g4nger Doppe1g4nger merged commit 05af98e into hackingmaterials:master Sep 24, 2018
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