Help us understand the problem. What is going on with this article?

ド・モルガンの法則の覚え方

More than 5 years have passed since last update.

こういうやつ

not (a or b or c) <=> (not a) and (not b) and (not c)
not (a and b and c) <=> (not a) or (not b) or (not c)

すぐ忘れるよね。ぼくは忘れる。

O'Reillyの『リーダブルコード』に簡単な覚え方が載っていた。

notを分配してand/orを反転する
(逆方向は「notをくくりだす」)
usobuku
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away