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

wrappers.scala.WOptions.scala Maven / Gradle / Ivy

The newest version!
package wrappers.scala {
  import scalan._

  import special.wrappers.WrappersModule

  trait WOptions extends Base { self: WrappersModule =>
    trait WOption[A] extends Def[WOption[A]] {
      implicit def eA: Elem[A];
      def isDefined: Ref[Boolean];
      def filter(p: Ref[scala.Function1[A, Boolean]]): Ref[WOption[A]];
      def map[B](f: Ref[scala.Function1[A, B]]): Ref[WOption[B]];
      def getOrElse[B](default: Ref[Thunk[B]]): Ref[B];
      def get: Ref[A]
    };
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy