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
Update typeclasses docs #2313
Update typeclasses docs #2313
Conversation
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.
thanks @aballano !
@@ -11,7 +9,8 @@ interface Semigroup<A> { | |||
operator fun A.plus(b: A): A = | |||
this.combine(b) | |||
|
|||
fun A.maybeCombine(b: A?): A = Option.fromNullable(b).fold({ this }, { combine(it) }) | |||
fun A.maybeCombine(b: A?): A = |
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.
👍
This contributes to CU-9rrjbq |
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.
Thanks @aballano 🙌🏾
Adapt Monoid, Semigroup and Semiring docs to the new typeclass syntax