monoids
![Maven Central](https://camo.githubusercontent.com/c295a6547946f82533f4553feb950033f4014a43ae9518bcb4eb6af6a5c207c9/68747470733a2f2f6d6176656e2d6261646765732e6865726f6b756170702e636f6d2f6d6176656e2d63656e7472616c2f696f2e6368726973646176656e706f72742f6d6f6e6f6964735f322e31322f62616467652e737667)
Monoids is a library for some generic Monoids that are very useful.
This library exposes
All
- Boolean newtype that combines values using&&
Any
- Boolean newtype that combines values using||
Dual
- Inverts the Combine operation of a monoidFirst
- Option newtype that combine takes the first element that is presentLast
- Option newtype that combine takes the last element that is presentProduct
- Numeric newtype that combines values using MultiplicationSum
- Numeric newtype that combines values using Addition
Head on over to the Microsite
Quick Start
To use this project in an existing SBT project with Scala 2.11 or a later version, add the following dependencies to your build.sbt
depending on your needs:
libraryDependencies ++= Seq(
"io.chrisdavenport" %% "monoids" % "<version>"
)