(defn get-cell
"Get the single cell named by name"
[df name]
(let [cells (get-cells df name)]
(cond
(= (count cells) 1) (first cells)
(> (count cells) 1) (throwf Exception "Cell %s has multiple instances" name)
:otherwise (throwf Exception "Cell %s is undefined" name))))
Comments top
No comments for get-cell. Log in to add a comment.