Module lambda_types::boolean

source ·
Expand description

Function types relating to boolean algebra.

Structs§

  • Boolean and operation. Takes two church booleans, and returns whether both are true.
  • Alternation. Takes a church boolean and two values, and returns the first if the boolean is true, otherwise the second.
  • Boolean not operation. Takes a church boolean and returns its inverse.
  • Boolean or operation. Takes two church booleans, and returns whether either is true.
  • Boolean xor operation. Takes two church booleans, and returns whether only one is true.

Type Aliases§

  • Falsy church boolean.
  • Truthy church boolean.