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

vegas.DSL.package.scala Maven / Gradle / Ivy

package vegas

import monocle.Prism

import scala.reflect._

/**
  * @author Aish Fenton.
  */
package object DSL {

  // Util used for composing Lens with options (and returning a default)
  def _orElse[T](fn: => T) = Prism[Option[T], T]{ o:Option[T] => o.orElse(Some(fn)) }(Some.apply)

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy