update-values

clojure.contrib.dataflow

  • (update-values df data)
Given a dataflow, and a map of name-value pairs, update the
dataflow by binding the new values. Each name must be of a source
cell

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/dataflow.clj:439 top

(defn update-values
  "Given a dataflow, and a map of name-value pairs, update the
   dataflow by binding the new values.  Each name must be of a source
   cell"
  [df data]
  (dosync
   (validate-update df (keys data))
   (let [needed (apply union (for [name (keys data)]
                               (set ((:cells-map @df) name))))]
     (perform-flow df data needed))))
Vars in clojure.contrib.dataflow/update-values: update-values defn dosync keys let
Used in 0 other vars

Comments top

No comments for update-values. Log in to add a comment.