operator | method

Logic operator |(
  1. Logic other
)

Logical bitwise OR.

Implementation

Logic operator |(Logic other) {
  if (other is Const) {
    return other | this;
  }

  return Or2Gate(this, other).out;
}