Skip to content

Commit d567ad6

Browse files
committed
Add when in place of if
1 parent 749dc60 commit d567ad6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/clojure/core.clj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@
2525
(defn pr [& more]
2626
(print-string (apply str more)))
2727

28-
"TODO: use when"
2928
(defn prn [& more]
3029
(apply pr more)
3130
(newline)
32-
(if *flush-on-newline*
31+
(when *flush-on-newline*
3332
(flush)
3433
nil))
3534

@@ -66,4 +65,4 @@
6665
result)))
6766

6867
(defn ffirst [x]
69-
(first (first x)))
68+
(first (first x)))

0 commit comments

Comments
 (0)