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

dfhdl.core.Conditional.scala Maven / Gradle / Ivy

package dfhdl.core

class Conditional[T](arg: => T, cond: => Boolean):
  def isActive: Boolean = cond
  def getArg: T = arg

object Conditional:
  object Ops:
    extension [T](arg: => T)
      def @@(cond: => Boolean): Conditional[T] = new Conditional[T](arg, cond)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy