Liking cljdoc? Tell your friends :D

code.doc.parse.check


attribute?clj

(attribute? nav)

check if element is an attribute

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

check if element is an attribute

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

code-directive?clj

(code-directive? nav)

check if element is a code directive

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

check if element is a code directive

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

comment?clj

(comment? nav)

check if element is a comment form

(comment? (nav/parse-string "(comment 1 => 1)")) => true

check if element is a `comment` form

(comment? (nav/parse-string "(comment 1 => 1)"))
=> true
raw docstring

deftest?clj

(deftest? nav)

check if element is a deftest form

(deftest? (nav/parse-string "(deftest ...)")) => true

check if element is a `deftest` form

(deftest? (nav/parse-string "(deftest ...)"))
=> true
raw docstring

directive?clj

(directive? nav)
(directive? nav kw)

check if element is a directive

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

check if element is a directive

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

directivesclj


fact?clj

(fact? nav)

check if element is a fact form

(fact? (nav/parse-string "(fact 1 => 1)")) => true

check if element is a `fact` form

(fact? (nav/parse-string "(fact 1 => 1)"))
=> true
raw docstring

facts?clj

(facts? nav)

check if element is a facts form

(facts? (nav/parse-string "(facts 1 => 1)")) => true

check if element is a `facts` form

(facts? (nav/parse-string "(facts 1 => 1)"))
=> true
raw docstring

is?clj

(is? nav)

check if element is an is form

(is? (nav/parse-string "(is ...)")) => true

check if element is an `is` form

(is? (nav/parse-string "(is ...)"))
=> true
raw docstring

ns?clj

(ns? nav)

check if element is a ns form

(ns? (nav/parse-string "(ns code.manage)")) => true

check if element is a `ns` form

(ns? (nav/parse-string "(ns code.manage)"))
=> true
raw docstring

paragraph?clj

(paragraph? nav)

check if element is a paragraph (string)

(paragraph? (nav/parse-string ""hello world"")) => true

check if element is a paragraph (string)

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

whitespace?clj

(whitespace? nav)

check if element is whitespace

(whitespace? (nav/parse-string " ")) => true

check if element is whitespace

(whitespace? (nav/parse-string " "))
=> true
raw docstring

wrap-metaclj

(wrap-meta f)

helper function for navigating ^:meta tags

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

helper function for navigating `^:meta` tags

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

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

× close