(add-indices elements values)
(all-refs input)
(annotate fs & [firsts path x y path-sets])
(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.
(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.
(by-rows fs)
(copy input)
(count-refs-in-path path fs)
(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}}}}})
(create-shared-values serialized)
(deref-map input)
(deserialize serialized)
(deserialize-with-remove serialized pred)
(elements fs)
(elements-of-row elements row)
(exception error-string)
(exists? the-map path)
(fail-path fs1 fs2)
(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.
(fail-path-r fs & [fs-keys])
find the first failing path in a fs.
find the first failing path in a fs.
(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.
(failr? fs keys)
(find-fail-in fs1 fs2 paths)
(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.
(gather-annotations fs & [firsts path annotate])
(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.
(has-path path paths)
(height fs & [firsts path])
(index-of-ref path path-sets & [i])
(is-first-ref? path sets)
(isomorphic? a b)
(key-rank k keys)
(label-of parent)
(max-lengths serialization)
(merge-with-keys arg1 arg2 keys-of-arg1)
(nonfail maps)
(padding value width)
(path-to-ref-index serialized path n)
(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.
(pprint input)
(print-out fs)
(rank-within path fs)
(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).
(ref-skel-map input-map)
associate each reference in input-map with:
associate each reference in _input-map_ with: 1. its skeleton 2. all paths to point to it.
(ref= map path1 path2)
(ref? val)
(remove-matching-keys fs pred)
(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)
(ser-intermed input-map)
(serialize input-map)
(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.
(skeletize input-val)
(skels input-map refs)
create map from reference to their skeletons.
create map from reference to their skeletons.
(sort-by-max-lengths serialization)
(sort-shortest-path-ascending-r serialization path-length-pairs)
(strip-refs map-with-refs)
(unify & args)
like unify!, but non-destructively copy each argument before unifying.
like unify!, but non-destructively copy each argument before unifying.
(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
(width fs & [firsts path])
(width-of-cell cell)
(width-of-column elements column)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close