Liking cljdoc? Tell your friends :D

dag_unify.core


*exclude-keys*clj/s


*local-keys*clj/s


add-indicesclj/s

(add-indices elements values)

all-refsclj/s

(all-refs input)

annotateclj/s

(annotate fs & [firsts path x y path-sets])

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

by-rowsclj/s

(by-rows fs)

copyclj/s

(copy input)

count-refs-in-pathclj/s

(count-refs-in-path path fs)

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}}}}})

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

create-shared-valuesclj/s

(create-shared-values serialized)

deref-mapclj/s

(deref-map input)

deserializeclj/s

(deserialize serialized)

deserialize-with-removeclj/s

(deserialize-with-remove serialized pred)

elementsclj/s

(elements fs)

elements-of-rowclj/s

(elements-of-row elements row)

exceptionclj/s

(exception error-string)

exists?clj/s

(exists? the-map path)

fail-pathclj/s

(fail-path fs1 fs2)

fail-path-betweenclj/s

(fail-path-between fs1 fs2)

If unifying fs1 and fs2 leads to a fail somewhere, show the path to the fail. Otherwise return nil. Not efficient: use only for diagnostics.

If unifying fs1 and fs2 leads to a fail somewhere, show the path to the fail. Otherwise return nil. Not efficient: use only for diagnostics.
raw docstring

fail-path-rclj/s

(fail-path-r fs & [fs-keys])

find the first failing path in a fs.

find the first failing path in a fs.
raw docstring

fail?clj/s

(fail? fs)

(fail? fs) <=> true if at least one of fs's path's value is :fail.

(fail? fs) <=> true if at least one of fs's path's value is :fail.
raw docstring

failr?clj/s

(failr? fs keys)

find-fail-inclj/s

(find-fail-in fs1 fs2 paths)

find-paths-to-valueclj/s

(find-paths-to-value map value path)

find all paths in map which are equal to value, where value is (ref?)=true.

find all paths in _map_ which are equal to _value_, where _value_ is (ref?)=true.
raw docstring

gather-annotationsclj/s

(gather-annotations fs & [firsts path annotate])

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)

heightclj/s

(height fs & [firsts path])

index-of-refclj/s

(index-of-ref path path-sets & [i])

is-first-ref?clj/s

(is-first-ref? path sets)

isomorphic?clj/s

(isomorphic? a b)

key-rankclj/s

(key-rank k keys)

label-ofclj/s

(label-of parent)

mapfnclj/s


max-lengthsclj/s

(max-lengths serialization)

merge-with-keysclj/s

(merge-with-keys arg1 arg2 keys-of-arg1)

nonfailclj/s

(nonfail maps)

paddingclj/s

(padding value width)

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)

(print-out fs)

rank-withinclj/s

(rank-within path fs)

recursive-dissocclj/s

(recursive-dissoc a-map pred)

like dissoc, but works recursively. Only works on reference-free maps (contains no atoms).

like dissoc, but works recursively. Only works on reference-free maps (contains no atoms).
raw docstring

ref-skel-mapclj/s

(ref-skel-map input-map)

associate each reference in input-map with:

  1. its skeleton
  2. all paths to point to it.
associate each reference in _input-map_ with:
1. its skeleton
2. all paths to point to it.
raw docstring

ref=clj/s

(ref= map path1 path2)

ref?clj/s

(ref? val)

remove-matching-keysclj/s

(remove-matching-keys fs pred)

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

ser-intermedclj/s

(ser-intermed input-map)

serializeclj/s

(serialize input-map)

simple-unifyclj/s


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

skeletizeclj/s

(skeletize input-val)

skelsclj/s

(skels input-map refs)

create map from reference to their skeletons.

create map from reference to their skeletons.
raw docstring

sort-by-max-lengthsclj/s

(sort-by-max-lengths serialization)

sort-shortest-path-ascending-rclj/s

(sort-shortest-path-ascending-r serialization path-length-pairs)

strip-refsclj/s

(strip-refs map-with-refs)

unifyclj/s

(unify & 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

unifycclj/s

(unifyc & args)

alias for (defn unify)

alias for (defn unify)
raw docstring

widthclj/s

(width fs & [firsts path])

width-of-cellclj/s

(width-of-cell cell)

width-of-columnclj/s

(width-of-column elements column)

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

× close