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
)
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
)
call function in clojure
(defn square [x]
(* x x))
(println (square 2))
; 4
(println (square 3))
; 9
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us