Liking cljdoc? Tell your friends :D
Clojure only.

detritus.macros


-<>cljmacro

(-<> val & forms)
source

-?clj

(-? named)
source

defenumcljmacro

(defenum ename & kws)

Defines a enum to be a set of keywords either already qualified or qualified with the name of the enum.

Takes as arguments a name for the enum, and a sequence of expressions either being sets of potentially qualified keywords or individual keywords. Generates an unqualified alias def and predicate for each keyword, and a predicate for the enum as a whole.

Ex. (defenum foo :bar :baz)

-> foo? bar, bar?, baz, baz?

Defines a enum to be a set of keywords either already qualified or
qualified with the name of the enum.

Takes as arguments a name for the enum, and a sequence of
expressions either being sets of potentially qualified keywords or
individual keywords. Generates an unqualified alias def and
predicate for each keyword, and a predicate for the enum as a
whole.

Ex.
(defenum foo
  :bar
  :baz)

-> foo? bar, bar?, baz, baz?
sourceraw docstring

re-condcljmacro

(re-cond text & forms)

cond specialized for dealing with regexes and binding the result of a regex match. Takes a leading form expected to be a String and a series of pattern/binding/form guards. If the input String matches a pattern, that match is destructured with the given binding(s) and the form is evaluated.

Handy for dealing with operations on one of several regex matches.

cond specialized for dealing with regexes and binding the result of
a regex match. Takes a leading form expected to be a String and a
series of pattern/binding/form guards. If the input String matches a
pattern, that match is destructured with the given binding(s) and
the form is evaluated.

Handy for dealing with operations on one of several regex matches.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close