All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cats.xml.xpath.utils.predicate.or.scala Maven / Gradle / Ivy

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