Making the if-not example a bit clearer, fixing the answer keys

I felt the example wasn't very clear as the conditional returned the quoted form of `doom` when it evaluated to true or false. This way the user needs to find a value that satisfies the if-not conditional so it returns `doom` and not `more-doom`.
This commit is contained in:
Attila Domokos 2013-11-22 13:52:20 -06:00
parent 0675850ae7
commit 6ee21f47b0
2 changed files with 4 additions and 4 deletions

View file

@ -73,7 +73,7 @@
nil
:glory
4 6 :your-road
'doom 0
1
:cocked-pistol
:say-what?]}]
@ -208,5 +208,5 @@
'((0 1 2) (3 4))
5
:hello
(6 :this :are)
(6 :these :are)
]}]]

View file

@ -33,9 +33,9 @@
:else __)))
"Or your fate may be sealed"
(= __ (if-not (zero? __)
(= 'doom (if-not (zero? __)
'doom
'doom))
'more-doom))
"In case of emergency, sound the alarms"
(= :sirens