2

Why LightTable does not show the functions results instead it returns nil?

(defn greet
  ([] (greet "you"))
  ([name] (print "Hello" name))) #'user/greet

(greet) nil
(greet "World") nil
user977828
  • 7,259
  • 16
  • 66
  • 117

1 Answers1

3

Actually, that is not a LightTable issue, 'print' function returns nil. You can see When you type "hello, world" in Clojure REPL, why does it say 'nil'?

Community
  • 1
  • 1
ayato_p
  • 433
  • 3
  • 8