Bool

Boolean type and operations.

While boolean operators _ and _ and _ or _ are short-circuiting, avoiding computation of the right argument when possible, the functions logand(_, _) and logor(_, _) are strict and will always evaluate both of their arguments.

type Bool = Prim.Types.Bool

Booleans with constants true and false.

public func logicalAnd(a : Bool, b : Bool) : Bool

Returns a and b.

public func logicalOr(a : Bool, b : Bool) : Bool

Returns a or b.

public func logicalXor(a : Bool, b : Bool) : Bool

Returns exclusive or of a and y, a != b.

public func logicalNot(bool : Bool) : Bool

Returns not bool.

public func equal(a : Bool, b : Bool) : Bool

Returns a == b.

public func compare(a : Bool, b : Bool) : {#less; #equal; #greater}

Returns a != b.

public func toText(bool : Bool) : Text

public func allValues() : Iter.Iter<Bool>