boolean (original) (raw)
scala.compiletime.ops.boolean
Members list
Negation of a Boolean
singleton type.
Negation of a Boolean
singleton type.
import compiletime.ops.boolean.*
val notFalse: ![false] = true
val notTrue: ![true] = false
Attributes
Source
Conjunction of two Boolean
singleton types.
Conjunction of two Boolean
singleton types.
import compiletime.ops.boolean.*
val a: true && true = true
val b: false && true = false
Attributes
Source
Exclusive disjunction of two Boolean
singleton types.
Exclusive disjunction of two Boolean
singleton types.
import compiletime.ops.boolean.*
val a: true ^ true = false
val b: false ^ true = true
Attributes
Source
Disjunction of two Boolean
singleton types.
Disjunction of two Boolean
singleton types.
import compiletime.ops.boolean.*
val a: true || false = true
val b: false || false = false
Attributes
Source
In this article