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
(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))))
Comments top
No comments for update-values. Log in to add a comment.