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

monocle.unsafe.UnsafeSelect.scala Maven / Gradle / Ivy

The newest version!
package monocle.unsafe

import monocle.Prism

object UnsafeSelect {
  def unsafeSelect[A](predicate: A => Boolean): Prism[A, A] =
    Prism[A, A](a => Some(a).filter(predicate))(a => a)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy