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