cats.xml.xpath.utils.predicate.or.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cats-xml-xpath_3 Show documentation
Show all versions of cats-xml-xpath_3 Show documentation
A purely functional XML library
The newest version!
package cats.xml.xpath.utils.predicate
import cats.Monoid
object or {
implicit def logicalOrMonoid[T]: Monoid[T => Boolean] =
new Monoid[T => Boolean] {
override def empty: T => Boolean = _ => false
override def combine(x: T => Boolean, y: T => Boolean): T => Boolean =
t => x(t) || y(t)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy