Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Maintenance: linting #123
Maintenance: linting #123
Changes from 12 commits
e9b3f00
b7a7c56
dc82588
905281f
ad0815b
e8a1588
0cfd183
7d64d27
6e7e84e
bd75569
9f798ea
03ed8dc
5d86c26
74869cd
5cc9666
4bbf518
e601402
b6238b7
c8d1bc9
95a2736
af9013c
360a3db
8a8cce1
0742643
d0310bd
d7e0017
f79160c
21a0078
e03d7a0
cd03f4e
ef5bff3
26e5b94
3f70829
f417059
0674840
0b640d5
faf2252
046dcfc
821e849
c1445c0
1a21e1c
363fe8f
d258a73
95b3f74
b2e1fde
1af6a98
40a7610
76fb999
a56710e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I count three pattern matches with
case
that could be inlined into their functions. 😛 e.g.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've found these two helpful to change 5cc9666
I'm guessing the third one is
count = \case
although if the equivalent would beWould this be very similar to using point-free
case
here? Or perhaps there is another equivalent I'm not seeing 👍There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep that's the one, and yeah it's very similar, just a case of common idioms. 🙂