RosettaCodeData/Task/Conditional-structures/Clojure/conditional-structures-2.clj
Ingy döt Net 764da6cbbb CDE
2013-04-10 16:57:12 -07:00

4 lines
150 B
Clojure

(when x
(print "hello")
(println " world")
5) ; when x is logical true, prints "hello world" and returns 5; otherwise does nothing, returns nil