Liking cljdoc? Tell your friends :D

hara.event.util


checker-formclj

(checker-form checker)

creates a checker form

(checker-form '_) => hara.core.base.util/T

(checker-form 'string?) => 'string?

creates a checker form

(checker-form '_) => hara.core.base.util/T

(checker-form 'string?) => 'string?
raw docstring

handler-formclj

(handler-form bindings body)

creates a bindings form based on input

(handler-form '[name date] '(str name " " date)) => '(clojure.core/fn [{:keys [name date]}] str name " " date)

creates a bindings form based on input

(handler-form '[name date]
              '(str name " " date))
=> '(clojure.core/fn [{:keys [name date]}] str name " " date)
raw docstring

is-special-formclj

(is-special-form k form)
(is-special-form k form syms)

checks if a form is special in term of the condition framework

(is-special-form :anticipate '(catch Throwable t)) => true

(is-special-form :manage '(on :stuff [])) => true

checks if a form is special in term of the condition framework

(is-special-form :anticipate '(catch Throwable t))
=> true

(is-special-form :manage '(on :stuff []))
=> true
raw docstring

parse-default-formclj

(parse-default-form forms)

create option for default behavior

(parse-default-form '((default 1000))) => [1000]

create option for default behavior

(parse-default-form '((default 1000)))
=> [1000]
raw docstring

parse-on-any-handler-formsclj

(parse-on-any-handler-forms forms)

create form for handling manage/on-any blocks

(parse-on-any-handler-forms '((on-any [] :do-something))) => '[{:checker (quote _), :fn (clojure.core/fn [{:keys []}] :do-something)}]

create form for handling `manage/on-any` blocks

(parse-on-any-handler-forms '((on-any [] :do-something)))
=> '[{:checker (quote _), :fn (clojure.core/fn [{:keys []}] :do-something)}]
raw docstring

parse-on-handler-formsclj

(parse-on-handler-forms forms)

create form for handling manage/on blocks

(parse-on-handler-forms '((on :stuff [] :do-something))) => '[{:checker :stuff, :fn (clojure.core/fn [{:keys []}] :do-something)}]

create form for handling `manage/on` blocks

(parse-on-handler-forms '((on :stuff [] :do-something)))
=> '[{:checker :stuff, :fn (clojure.core/fn [{:keys []}] :do-something)}]
raw docstring

parse-option-formsclj

(parse-option-forms forms)

create a label read the option forms

(parse-option-forms '((option :NIL [] nil))) => '{:NIL (clojure.core/fn [] nil)}

create a label read the option forms

(parse-option-forms '((option :NIL [] nil)))
=> '{:NIL (clojure.core/fn [] nil)}
raw docstring

parse-try-formsclj

(parse-try-forms forms)

create form for handling try blocks

(parse-try-forms '((catch Throwable t))) => '[(catch Throwable t)]

create form for handling try blocks

(parse-try-forms '((catch Throwable t)))
=> '[(catch Throwable t)]
raw docstring

sp-formsclj

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

× close