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