Liking cljdoc? Tell your friends :D

lucid.publish.parse.checks


attribute?clj

(attribute? zloc)

check if element is an attribute

(attribute? (zip/of-string "[[{:title "hello"}]]")) => true

check if element is an attribute

(attribute? (zip/of-string "[[{:title \"hello\"}]]"))
=> true
raw docstring

code-directive?clj

(code-directive? zloc)

check if element is a code directive

(code-directive? (zip/of-string "[[:code {:lang "python"} "1 + 1"]]")) => true

check if element is a code directive

(code-directive? (zip/of-string "[[:code {:lang \"python\"} \"1 + 1\"]]"))
=> true
raw docstring

comment?clj

(comment? zloc)

check if element is a comment form

(comment? (zip/of-string "(comment 1 => 1)")) => true

check if element is a `comment` form

(comment? (zip/of-string "(comment 1 => 1)"))
=> true
raw docstring

deftest?clj

(deftest? zloc)

check if element is a deftest form

(deftest? (zip/of-string "(deftest ...)")) => true

check if element is a `deftest` form

(deftest? (zip/of-string "(deftest ...)"))
=> true
raw docstring

directive?clj

(directive? zloc)
(directive? zloc kw)

check if element is a directive

(directive? (zip/of-string "[[:chapter {:title "hello"}]]")) => true

check if element is a directive

(directive? (zip/of-string "[[:chapter {:title \"hello\"}]]"))
=> true
raw docstring

directivesclj


fact?clj

(fact? zloc)

check if element is a fact form

(fact? (zip/of-string "(fact 1 => 1)")) => true

check if element is a `fact` form

(fact? (zip/of-string "(fact 1 => 1)"))
=> true
raw docstring

facts?clj

(facts? zloc)

check if element is a facts form

(facts? (zip/of-string "(facts 1 => 1)")) => true

check if element is a `facts` form

(facts? (zip/of-string "(facts 1 => 1)"))
=> true
raw docstring

is?clj

(is? zloc)

check if element is an is form

(is? (zip/of-string "(is ...)")) => true

check if element is an `is` form

(is? (zip/of-string "(is ...)"))
=> true
raw docstring

ns?clj

(ns? zloc)

check if element is a ns form

(ns? (zip/of-string "(ns lucid.unit)")) => true

check if element is a `ns` form

(ns? (zip/of-string "(ns lucid.unit)"))
=> true
raw docstring

paragraph?clj

(paragraph? zloc)

check if element is a paragraph (string)

(paragraph? (zip/of-string ""hello world"")) => true

check if element is a paragraph (string)

(paragraph? (zip/of-string "\"hello world\""))
=> true
raw docstring

whitespace?clj

(whitespace? zloc)

check if element is whitespace

(whitespace? (zip/next* (zip/of-string "a b"))) => true

check if element is whitespace

(whitespace? (zip/next* (zip/of-string "a b")))
=> true
raw docstring

wrap-metaclj

(wrap-meta f)

helper function for navigating ^:meta tags

((wrap-meta query/match) (zip/of-string "^:hello ()") list?) => true

helper function for navigating `^:meta` tags

((wrap-meta query/match) (zip/of-string "^:hello ()") list?)
=> true
raw docstring

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

× close