Answers for "how to call a function in clojure"

0

how to make a functionn in clojure

(defn foo
  "
  foo 

  Demonstrates the body of a function
  "
	[param param2 ... ] ; params are seperated by spaces not commas
	;stuff to do in here

)
Posted by: Guest on November-16-2020
0

call function in clojure

(defn square [x]
    (* x x))

(println (square 2))
; 4

(println (square 3))
; 9
Posted by: Guest on November-16-2020

Code answers related to "how to call a function in clojure"

Browse Popular Code Answers by Language