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

de.sciss.synth.Optional.scala Maven / Gradle / Ivy

The newest version!
package de.sciss.synth

object Optional {
  implicit def some[ @specialized A ]( a: A ) = Optional( Some( a ))
  implicit def wrap[ A ]( a: Option[ A ]) = Optional( a )
  implicit def unwrap[ A ]( a: Optional[ A ]) = a.option
}
final case class Optional[ A ]( option: Option[ A ])




© 2015 - 2024 Weber Informatics LLC | Privacy Policy