BooleanΒΆ
boolean.spad line 40 [edit on github]
Boolean is the elementary logic with 2 values: true
and false
- /\: (%, %) -> %
from MeetSemilattice
- <=: (%, %) -> Boolean
from PartialOrder
- <: (%, %) -> Boolean
from PartialOrder
- >=: (%, %) -> Boolean
from PartialOrder
- >: (%, %) -> Boolean
from PartialOrder
- \/: (%, %) -> %
from JoinSemilattice
- _|_: %
- and: (%, %) -> %
a and b
returns the logical and of Booleana
andb
.
- coerce: % -> OutputForm
from CoercibleTo OutputForm
- convert: % -> InputForm
from ConvertibleTo InputForm
- hash: % -> SingleInteger
from Hashable
- hashUpdate!: (HashState, %) -> HashState
from Hashable
- implies: (%, %) -> %
implies(a, b)
returns the logical implication of Booleana
andb
.
- index: PositiveInteger -> %
from Finite
- latex: % -> String
from SetCategory
- lookup: % -> PositiveInteger
from Finite
- max: (%, %) -> %
from OrderedSet
- min: (%, %) -> %
from OrderedSet
- nand: (%, %) -> %
nand(a, b)
returns the logical negation ofa
andb
.
- nor: (%, %) -> %
nor(a, b)
returns the logical negation ofa
orb
.
- not: % -> %
not n
returns the negation ofn
.
- or: (%, %) -> %
a or b
returns the logical inclusive or of Booleana
andb
.
- size: () -> NonNegativeInteger
from Finite
- smaller?: (%, %) -> Boolean
from Comparable
- T: %
- test: % -> Boolean
test(b)
returnsb
and is provided for compatibility with the new compiler.
- xor: (%, %) -> %
xor(a, b)
returns the logical exclusive or of Booleana
andb
.