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