Вопрос

I think it is always true that

x || (x && y) 

is equivalent to

x

If so, what is that law called? I'm not even sure how I would Google for that.

Это было полезно?

Решение

It's called a Redundancy Law.

A + A·B = A
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top