Gets a value from the df matching the passed symbol.
Signals an error if the name is not present, or if it not a single
value.
(defn get-value
"Gets a value from the df matching the passed symbol.
Signals an error if the name is not present, or if it not a single
value."
[df name]
(let [cell (get-cell df name)
result @(:value cell)]
(do (when (= *empty-value* result)
(throwf Exception "Cell named %s empty" name))
result)))
Comments top
No comments for get-value. Log in to add a comment.