(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?
(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)
(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
(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]
(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)}]
(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)}]
(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)}
(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)]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close