Skip to content

Commit 68dcde9

Browse files
adomokostrptcolin
authored andcommitted
Make if-not example clearer, fix 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`.
1 parent 0cf4cd3 commit 68dcde9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

resources/koans.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
nil
7474
:glory
7575
4 6 :your-road
76-
'doom 0
76+
1
7777
:cocked-pistol
7878
:say-what?]}]
7979

@@ -208,5 +208,5 @@
208208
'((0 1 2) (3 4))
209209
5
210210
:hello
211-
(6 :this :are)
211+
(6 :these :are)
212212
]}]]

src/koans/07_conditionals.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
:else __)))
3434

3535
"Or your fate may be sealed"
36-
(= __ (if-not (zero? __)
36+
(= 'doom (if-not (zero? __)
3737
'doom
38-
'doom))
38+
'more-doom))
3939

4040
"In case of emergency, sound the alarms"
4141
(= :sirens

0 commit comments

Comments
 (0)