-
Notifications
You must be signed in to change notification settings - Fork 38
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
The max
after the map
is removed
#489
Comments
The original code when I discovered this behavior was:
|
Interestingly it occurs only when both |
@FnControlOption Could you take a look at it, please? |
Hi @Sija, hope you are doing well. Unfortunately, I won’t have much time to look at this until around December 14 |
@FnControlOption Hi, I hope you're doing well. Would you have time to look at this? All the best in the New Year, btw! 🎉 |
Just throwing in an idea: I'm wondering if it would make sense to order and separate rule application by category. For example, Of course it wouldn't solve the problem in general as it cannot avoid conflicts between rules in the same category. But it would reduce the problem space and fix the particular issue at hand. |
@straight-shoota That wouldn't reduce the problem space, since the corrections are totally independent of the rule category. |
Code:
list.map { |i| i.size }.max
Ameba auto correct
The map is not replaced with max_of, but simply max is removed.
list.map(&.size)
The text was updated successfully, but these errors were encountered: