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 breturns the logical and of Booleanaandb.
- 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 Booleanaandb.
- 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 ofaandb.
- nor: (%, %) -> %
nor(a, b)returns the logical negation ofaorb.
- not: % -> %
not nreturns the negation ofn.
- or: (%, %) -> %
a or breturns the logical inclusive or of Booleanaandb.
- size: () -> NonNegativeInteger
from Finite
- smaller?: (%, %) -> Boolean
from Comparable
- T: %
- test: % -> Boolean
test(b)returnsband is provided for compatibility with the new compiler.
- xor: (%, %) -> %
xor(a, b)returns the logical exclusive or of Booleanaandb.