(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
(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
(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
(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
(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
(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
(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
(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
(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
(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
(whitespace? nav)
check if element is whitespace
(whitespace? (nav/parse-string " ")) => true
check if element is whitespace (whitespace? (nav/parse-string " ")) => true
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close