Is there any function in clojure which calculates the boolean value of the given expression? What I mean is if expression is nil or false then this function returns false, otherwise true?
(to-bool nil) ; => false
(to-bool false) ; => false
(to-bool java.util.Date.) ; => true
(to-bool true) ; => true
(to-bool 7) ; => true
Something like that?