Liking cljdoc? Tell your friends :D

dag_unify.core


assoc-inclj/s

(assoc-in m path v)

Similar to clojure.core/assoc-in, but uses unification so that existing values are unified rather than overwritten.

Similar to clojure.core/assoc-in, but uses unification so that existing values are unified rather than overwritten.
raw docstring

assoc-in!clj/s

(assoc-in! m path v)

Similar to assoc-in, but m's references (if any) are modified.

Similar to assoc-in, but m's references (if any) are modified.
raw docstring

copyclj/s

(copy input)

fail-pathclj/s

(fail-path fs1 fs2)

fail?clj/s

(fail? arg)

find-fail-inclj/s

(find-fail-in fs1 fs2 paths)

get-inclj/s

(get-in in-map path & [not-found])

same as clojure.core (get-in), but references are resolved and followed.

same as clojure.core (get-in), but references are resolved and followed.
raw docstring

has-pathclj/s

(has-path path paths)

isomorphic?clj/s

(isomorphic? a b)

label-ofclj/s

(label-of parent)

log-serializing?clj/s


merge-with-keysclj/s


normalize-serialized2clj/s

(normalize-serialized2 s)

path-to-ref-indexclj/s

(path-to-ref-index serialized path n)

pathifyclj/s

(pathify fs & [prefix])

Transform a map into a map of paths/value pairs, where paths are lists of keywords, and values are atomic values. e.g.: {:foo {:bar 42, :baz 99}} => { { (:foo :bar) 42}, {(:foo :baz) 99} } The idea is to map the key :foo to the (recursive) result of pathify on :foo's value.

Transform a map into a map of paths/value pairs,
where paths are lists of keywords, and values are atomic values.
e.g.:
{:foo {:bar 42, :baz 99}} =>  { { (:foo :bar) 42}, {(:foo :baz) 99} }
The idea is to map the key :foo to the (recursive) result of pathify on :foo's value.
raw docstring

pprintclj/s

(pprint input)

ref?clj/s

(ref? val)

resolveclj/s

(resolve arg)

if arg is not a ref, return arg. if is a ref, return (resolve @arg)

if arg is not a ref, return arg. if is a ref, return (resolve @arg)
raw docstring

simplify-refclj/s

(simplify-ref arg)

if arg is a ref and @arg is not a ref, return arg. if @arg is also a ref, return (simplify-ref @arg). else, return arg.

if arg is a ref and @arg is not a ref, return arg. if @arg is also a ref, return (simplify-ref @arg). else, return arg.
raw docstring

strip-refsclj/s

(strip-refs map-with-refs)

unifyclj/s

(unify val1)
(unify val1 val2 & rest-args)

like unify!, but non-destructively copy each argument before unifying.

like unify!, but non-destructively copy each argument before unifying.
raw docstring

unify!clj/s

(unify! val1)
(unify! val1 val2 & rest-args)

destructively merge arguments, where arguments are maps possibly containing references, so that sharing relationship in the arguments is preserved in the result

destructively merge arguments, where arguments are maps possibly containing references, 
so that sharing relationship in the arguments is preserved in the result
raw docstring

use-new-serializer?clj/s


vec-contains?clj/s

(vec-contains? v e)

return true if e is in v, otherwise return false.

return true if e is in v, otherwise return false.
raw docstring

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

× close