Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私が行った場合
(setq x '(NOT (NOT (NOT (NOT A)))) )
(cdr x)は(NOT (NOT (NOT A))))
(cdr x)
(NOT (NOT (NOT A))))
しかし(cdr (cdr x))、NIL
(cdr (cdr x))
NIL
何が起きてる?
ええと、そうすべきではありません。(cdr x)あなたに与えるべきです'((NOT (NOT (NOT A))))。つまり(NOT (NOT (NOT A)))、はの最初の要素です(cdr x)。もう一度cdrを実行すると、1つの要素のリストに含まれるため、nilになります。'()
'((NOT (NOT (NOT A))))
(NOT (NOT (NOT A)))
'()