Liking cljdoc? Tell your friends :D

dj.dispatch.treefn

(let [args {:x 1, :y 2} fms {:add (fm [:x :y] (+ x y))} tf (treefm fms :add)] (tf args))

(let [args {:x 1, :y 2}
      fms {:add (fm [:x :y]
                    (+ x y))}
      tf (treefm fms :add)]
  (tf args))
raw docstring

dependencies->rev-edgesclj

(dependencies->rev-edges direct-dependency-map)

converts dependency graph into a graphviz friendly edge vector representing flow of data

converts dependency graph into a graphviz friendly edge vector representing flow of data
sourceraw docstring

dismantlefmclj

(dismantlefm dismantle-map tree-fn)

dismantle map should include functions (fms) that dismantle the object passed in, also for bookkeeping, any entries in the map may also be used to determine what will be removed from the map after dismantling (handled externally).

If value-specific dismantle function is not provided, will also call type specific Idismantle

On dismantle exception, immediately gives up, this is a tradeoff in that you can try to manually handle the case, extract debugging information, and then if so choose, continue the dismantle process by reinvoking with remaining objects

dismantle-if, the returned fn, when called returns nil

Might want to match the semantics of Stuart Sierra's component, where construction or destruction returns the data again

dismantle map should include functions (fms) that dismantle the
object passed in, also for bookkeeping, any entries in the map may
also be used to determine what will be removed from the map after
dismantling (handled externally).

If value-specific dismantle function is not provided, will also call
  type specific Idismantle

On dismantle exception, immediately gives up, this is a tradeoff in
  that you can try to manually handle the case, extract debugging
  information, and then if so choose, continue the dismantle process
  by reinvoking with remaining objects

dismantle-if, the returned fn, when called returns nil

Might want to match the semantics of Stuart Sierra's component, where
  construction or destruction returns the data again
  
sourceraw docstring

fmcljmacro

(fm bindings & body)

adds dependency metadata to fn, uses map destructuring assume you provide the vector in {:keys [a b ...]}

adds dependency metadata to fn, uses map destructuring
assume you provide the vector in {:keys [a b ...]}
sourceraw docstring

graphviz-dataclj

(graphviz-data treefn)
source

Idismantlecljprotocol

dismantleclj

(dismantle this)

destroy or close resource

destroy or close resource
source

invalidate-entriesclj

(invalidate-entries val-map treefn touched-nodes)

removes keys/vals of val-map that have been children of the recursively touched

removes keys/vals of val-map that have been children of the recursively touched
sourceraw docstring

touched-childrenclj

(touched-children tree-fn touched-nodes)
source

treefmclj

(treefm fn-map root-key)

shakes fm-map with root-key and produces a treefn but with fm instead of fn, which uses map destructuring

Internally, maps are being passed around to the functions

shakes fm-map with root-key and produces a treefn but with fm instead of fn, which uses map destructuring

Internally, maps are being passed around to the functions
sourceraw docstring

treefm-print-debugclj

(treefm-print-debug fn-map root-key)

shakes fm-map with root-key and produces a treefn but with fm instead of fn, which uses map destructuring

Internally, maps are being passed around to the functions

shakes fm-map with root-key and produces a treefn but with fm instead of fn, which uses map destructuring

Internally, maps are being passed around to the functions
sourceraw docstring

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

× close