implies method

bool implies(
  1. bool consequence
)

Returns whether this bool logically implies consequence.

Given two boolean expressions p and q, the results of "p implies q" (denoted as p → q) are shown by the following truth table:

p q p → q
T T T
T F F
F T T
F F F

Implementation

bool implies(bool consequence) => !this || consequence;