Liking cljdoc? Tell your friends :D

dag_unify.serialization


create-path-inclj/s

(create-path-in path value)

create a path starting at map through all keys in map: (create-path-in '(a b c d e) value) => {:a {:b {:c {:d {:e value}}}}}); the same as clojure.core/assoc-in, except when input path is empty.

create a path starting at map through all keys in map:
(create-path-in '(a b c d e) value) => {:a {:b {:c {:d {:e value}}}}});
the same as clojure.core/assoc-in, except when input path is empty.
sourceraw docstring

deserializeclj/s

(deserialize serialized & [always-create-atom?])

Turns a serialized representation, as returned by (serialize), above, back into a DAG. serialized is a list of pairs that look like: <pathset,value>. The first element of the list has an empty pathset, and the value is the 'skeleton' of the entire tree. For the rest of the elements in the list, an atom is created for the common value, and each path in the pathset points to that atom, and this result is then merged with the skeleton. If always-create-atom? is true, (deserialize) will not create an atom for a value where there is only path pointing to it, as an optimization, since it saves time and space when copying or unifying.

Turns a serialized representation, as returned by (serialize),
above, back into a DAG. _serialized_ is a list of pairs that look
like: <pathset,value>. The first element of the list has an empty
pathset, and the value is the 'skeleton' of the entire tree.  For
the rest of the elements in the list, an atom is created for the
common value, and each path in the pathset points to that atom, and
this result is then merged with the skeleton.  If
always-create-atom? is true, (deserialize) will not create an atom
for a value where there is only path pointing to it, as an
optimization, since it saves time and space when copying or unifying.
sourceraw docstring

exceptionclj/s

(exception error-string)
source

final-reference-ofclj/s

(final-reference-of input)
source

find-paths-to-refsclj/s

(find-paths-to-refs input path retval)

find all paths in map which point to any ref.

find all paths in _map_ which point to any ref.
sourceraw docstring

merge-skeletonclj/s

(merge-skeleton si)

For all shared values with only a single path leading to it, the corresponding value is merged with the base 'skeleton', and that path-value pair is removed from the serialized representation.

For all shared values with only a single path leading to it, the corresponding
value is merged with the base 'skeleton', and that path-value pair is removed from the
serialized representation.
sourceraw docstring

ref?clj/s

(ref? val)
source

serializeclj/s

(serialize input)
source

skeletizeclj/s

(skeletize input-val)
source

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

× close