std.block.value
apply-modifiers
added in 3.0
(apply-modifiers blocks)applys the modifiers within a container
(apply-modifiers (construct/uneval) (construct/uneval) 1 2 3) => 3
child-values
added in 3.0
(child-values block)deref-value
added in 3.0
(deref-value block)returns the value of a :deref block
(deref-value (parse/parse-string “@hello”)) => ’(deref hello)
from-value-string
added in 3.0
(from-value-string block)reads value from value-string
(from-value-string (parse/parse-string “(+ 1 1)”)) => ’(+ 1 1)
hash-keyword-value
added in 3.0
(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}
list-value
added in 3.0
(list-value block)returns the value of an :list block
(list-value (parse/parse-string “(+ 1 1)”)) => ’(+ 1 1)
map-value
added in 3.0
(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)
meta-value
added in 3.0
(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}
quote-value
added in 3.0
(quote-value block)returns the value of a :quote block
(quote-value (parse/parse-string “’hello”)) => ’(quote hello)
root-value
added in 3.0
(root-value block)returns the value of a :root block
(root-value (parse/parse-root “1 2 3”)) => ’(do 1 2 3)
select-splice-value
added in 3.0
(select-splice-value block)returns the value of a :select-splice block
(select-splice-value (parse/parse-string “#?@(:clj hello)”)) => ’(?-splicing {:clj hello})
select-value
added in 3.0
(select-value block)returns the value of a :select block
(select-value (parse/parse-string “#?(:clj hello)”)) => ’(? {:clj hello})
set-value
added in 3.0
(set-value block)returns the value of an :set block
(set-value (parse/parse-string “#{1 2 3 4}”)) => #{1 4 3 2}
unquote-splice-value
added in 3.0
(unquote-splice-value block)returns the value of a :unquote-splice block
(unquote-splice-value (parse/parse-string “~@hello”)) => ’(unquote-splicing hello)
unquote-value
added in 3.0
(unquote-value block)returns the value of a :unquote block
(unquote-value (parse/parse-string “~hello”)) => ’(unquote hello)
var-value
added in 3.0
(var-value block)returns the value of a :var block
(var-value (parse/parse-string “#’hello”)) => ’(var hello)
vector-value
added in 3.0
(vector-value block)