5
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

Last updated at Posted at 2013-08-25

こういうやつ

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をくくりだす」)
5
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?