A macro to define Clojure functions with parameter pattern matching
just like LFE based on core.match
. Please see
https://github.com/clojusc/defun
A macro to define Clojure functions with parameter pattern matching just like LFE based on `core.match`. Please see https://github.com/clojusc/defun
(defun name & fdecl)
Define a function just like clojure.core/defn, but using core.match to match parameters.
Define a function just like clojure.core/defn, but using core.match to match parameters.
(defun- name & decls)
same as defun, yielding non-public def
same as defun, yielding non-public def
(flet fnspecs & body)
letfn with parameter pattern matching.
letfn with parameter pattern matching.
(if-cljs then else)
Return then if we are generating cljs code and else for clj code. Source: http://blog.nberger.com.ar/blog/2015/09/18/more-portable-complex-macro-musing/
Return then if we are generating cljs code and else for clj code. Source: http://blog.nberger.com.ar/blog/2015/09/18/more-portable-complex-macro-musing/
(lambda & sigs)
Defines a function just like clojure.core/fn with parameter pattern matching.
Defines a function just like clojure.core/fn with parameter pattern matching.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close