RosettaCodeData/Task/Call-a-function/Clojure/call-a-function-12.clj

8 lines
246 B
Clojure

;; They are the same thing - indeed, everything in clojure is a function
;; Functions without return values simply return nil
(defn no-return-value [a]
(print (str "Your argument was" a "; now returning nil")))
(no-return-value "hi"); => nil