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 {
  @deprecated("use optic.filter(predicate)", since = "3.0.0-M1")
  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