(apply-modifiers blocks)
applys the modifiers within a container
(apply-modifiers [(construct/uneval) (construct/uneval) 1 2 3]) => [3]
applys the modifiers within a container (apply-modifiers [(construct/uneval) (construct/uneval) 1 2 3]) => [3]
(child-values block)
returns child values of a container
(child-values (parse/parse-string "[1 #_2 3]")) => [1 3]
returns child values of a container (child-values (parse/parse-string "[1 #_2 3]")) => [1 3]
(deref-value block)
returns the value of a :deref block
(deref-value (parse/parse-string "@hello")) => '(deref hello)
returns the value of a :deref block (deref-value (parse/parse-string "@hello")) => '(deref hello)
(from-value-string block)
reads value from value-string
(from-value-string (parse/parse-string "(+ 1 1)")) => '(+ 1 1)
reads value from value-string (from-value-string (parse/parse-string "(+ 1 1)")) => '(+ 1 1)
(hash-keyword-value block)
returns the value of a :hash-keyword block
(hash-keyword-value (parse/parse-string "#:hello{:a 1 :b 2}")) => #:hello{:b 2, :a 1}
returns the value of a :hash-keyword block (hash-keyword-value (parse/parse-string "#:hello{:a 1 :b 2}")) => #:hello{:b 2, :a 1}
(list-value block)
returns the value of an :list block
(list-value (parse/parse-string "(+ 1 1)")) => '(+ 1 1)
returns the value of an :list block (list-value (parse/parse-string "(+ 1 1)")) => '(+ 1 1)
(map-value block)
returns the value of an :map block
(map-value (parse/parse-string "{1 2 3 4}")) => {1 2, 3 4}
(map-value (parse/parse-string "{1 2 3}")) => (throws)
returns the value of an :map block (map-value (parse/parse-string "{1 2 3 4}")) => {1 2, 3 4} (map-value (parse/parse-string "{1 2 3}")) => (throws)
(meta-value block)
returns the value of a :meta block
((juxt meta identity) (meta-value (parse/parse-string "^:dynamic {:a 1}"))) => [{:dynamic true} {:a 1}]
((juxt meta identity) (meta-value (parse/parse-string "^String {:a 1}"))) => [{:tag 'String} {:a 1}]
returns the value of a :meta block ((juxt meta identity) (meta-value (parse/parse-string "^:dynamic {:a 1}"))) => [{:dynamic true} {:a 1}] ((juxt meta identity) (meta-value (parse/parse-string "^String {:a 1}"))) => [{:tag 'String} {:a 1}]
(quote-value block)
returns the value of a :quote block
(quote-value (parse/parse-string "'hello")) => '(quote hello)
returns the value of a :quote block (quote-value (parse/parse-string "'hello")) => '(quote hello)
(root-value block)
returns the value of a :root block
(root-value (parse/parse-string "#[1 2 3]")) => '(do 1 2 3)
returns the value of a :root block (root-value (parse/parse-string "#[1 2 3]")) => '(do 1 2 3)
(select-splice-value block)
returns the value of a :select-splice block
(select-splice-value (parse/parse-string "#?@(:clj hello)")) => '(?-splicing {:clj hello})
returns the value of a :select-splice block (select-splice-value (parse/parse-string "#?@(:clj hello)")) => '(?-splicing {:clj hello})
(select-value block)
returns the value of a :select block
(select-value (parse/parse-string "#?(:clj hello)")) => '(? {:clj hello})
returns the value of a :select block (select-value (parse/parse-string "#?(:clj hello)")) => '(? {:clj hello})
(set-value block)
returns the value of an :set block
(set-value (parse/parse-string "#{1 2 3 4}")) => #{1 4 3 2}
returns the value of an :set block (set-value (parse/parse-string "#{1 2 3 4}")) => #{1 4 3 2}
(unquote-splice-value block)
returns the value of a :unquote-splice block
(unquote-splice-value (parse/parse-string "~@hello")) => '(unquote-splicing hello)
returns the value of a :unquote-splice block (unquote-splice-value (parse/parse-string "~@hello")) => '(unquote-splicing hello)
(unquote-value block)
returns the value of a :unquote block
(unquote-value (parse/parse-string "~hello")) => '(unquote hello)
returns the value of a :unquote block (unquote-value (parse/parse-string "~hello")) => '(unquote hello)
(var-value block)
returns the value of a :var block
(var-value (parse/parse-string "#'hello")) => '(var hello)
returns the value of a :var block (var-value (parse/parse-string "#'hello")) => '(var hello)
(vector-value block)
returns the value of an :vector block
(vector-value (parse/parse-string "[1 2 3 4]")) => [1 2 3 4]
returns the value of an :vector block (vector-value (parse/parse-string "[1 2 3 4]")) => [1 2 3 4]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close