Liking cljdoc? Tell your friends :D

hara.code.block.value


*container-values*clj


apply-modifiersclj

(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]
raw docstring

child-valuesclj

(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]
raw docstring

deref-valueclj

(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)
raw docstring

from-value-stringclj

(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)
raw docstring

hash-keyword-valueclj

(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}
raw docstring

list-valueclj

(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)
raw docstring

map-valueclj

(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
raw docstring

meta-valueclj

(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}]
raw docstring

quote-valueclj

(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)
raw docstring

root-valueclj

(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)
raw docstring

select-splice-valueclj

(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})
raw docstring

select-valueclj

(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})
raw docstring

set-valueclj

(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}
raw docstring

unquote-splice-valueclj

(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)
raw docstring

unquote-valueclj

(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)
raw docstring

var-valueclj

(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)
raw docstring

vector-valueclj

(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]
raw docstring

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

× close