Search
 
SCRIPT & CODE EXAMPLE
 

CLOJURE

Clojure defn

;; defn defines a named function:
;; The defn macro defines a function taking zero or more arguments.
;; Any number of parameters may beinclude
;; name params body
;; _____ _____ ___________________________
;; (defn greet [name] (str "Hello," name))

   (defn add [x,y]    (+ x y))
Comment

Clojure def

Top-level 
(def cats 10)
Invoke function-specify name and passing arguments for each parameter.
(def five (add 2 3))
Comment

Clojure

(println "Hello, World!")
Comment

PREVIOUS NEXT
Code Example
Clojure :: clojure read file 
Clojure :: call function in clojure 
Abap :: comments in abap 
Lisp :: lisp input 
Cobol :: python pygments install 
Assembly :: restart kde 
Assembly :: pyplot name axes 
Assembly :: include code in latex 
Assembly :: discord bot edit message 
Assembly :: sparsefile 
Assembly :: how to check assembly compatibility X64 and x86 
Javascript :: jquery vslidation remove spaces from input 
Javascript :: collection.ensureIndex is deprecated 
Javascript :: create json server and run command 
Javascript :: get jquery version from console 
Javascript :: p5.js cdn 
Javascript :: remove attribute jquery 
Javascript :: enable button jquery 
Javascript :: js get base url 
Javascript :: react-native how to get size of screen 
Javascript :: regex date validation mm/dd/yyyy 
Javascript :: js split array in half 
Javascript :: javascript loop through array backwards 
Javascript :: check device width using js 
Javascript :: reactjs .htaccess 
Javascript :: colored console.log 
Javascript :: regex for number and letters 
Javascript :: angular go to route 
Javascript :: how to get value and key in a for of loop in js 
Javascript :: three js clock 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =