-
Notifications
You must be signed in to change notification settings - Fork 97
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
Omit explicit parameter types of anonymous functions #66
Conversation
…s earlier. Does not interfere with the task.
…s earlier. Does not interfere with the task.
x * 10 | ||
}) | ||
.apply(6) should be(res0) | ||
Semigroup[Int => Int].combine({ _ + 1 }, { _ * 10 }).apply(6) should be(res0) |
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.
Do we need the curly braces here?
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.
Sure. We dont need it
x * 10 | ||
}) | ||
.apply(6) should be(res0) | ||
Semigroup[Int => Int].combine(_ + 1 , _ * 10).apply(6) should be(res0) |
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.
Nice. Would you mind fixing the spaces and then LGTM!
Semigroup[Int => Int].combine(_ + 1, _ * 10).apply(6) should be(res0)
Thats it. Didn't notice |
Thanks @Kobenko! Merging if no further discussions. |
We can omit the naming of types, as we mentioned this earlier. Does not interfere with the task.