We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Add OptionSemiGroup and OptionMonoid.
OptionSemiGroup
OptionMonoid
Version: 1.2.0
1.2.0
Add OptionSemiGroup to make Option[A] SemiGroup[A] and OptionMonoid to make Option[A] Monoid[A] if SemiGroup[A] exists.
Option[A]
SemiGroup[A]
Monoid[A]
e.g.)
1.some |+| 999.some // Option[Int] = Some(1000) 1.some.mappend(999.some) // Option[Int] = Some(1000)
The text was updated successfully, but these errors were encountered:
Close #82 - Add OptionSemiGroup and OptionMonoid
cb28cc1
Merge pull request #85 from Kevin-Lee/task/82/add-option-semigroup-an…
f0dd02b
…d-option-monoid Close #82 - Add OptionSemiGroup and OptionMonoid
3ea6581
47fe210
kevin-lee
Successfully merging a pull request may close this issue.
Task
Summary
Add
OptionSemiGroup
andOptionMonoid
.Project Details
Version:
1.2.0
Description
Add
OptionSemiGroup
to makeOption[A]
SemiGroup[A]
andOptionMonoid
to makeOption[A]
Monoid[A]
ifSemiGroup[A]
exists.e.g.)
The text was updated successfully, but these errors were encountered: