Re: Attempting to call unbound fn: #'user/

2014-08-13 Thread Joe Smith
Nothing’s wrong with the code, but the `do` inside the catch form is unnecessary. Also, this won’t always convert to a float. Consider using Float/parseFloat, e.g., (Float/parseFloat “3.0”) > On Aug 13, 2014, at 3:31 PM, sindhu hosamane wrote: > > (defn convert-to-float [a] > (try >

Attempting to call unbound fn: #'user/

2014-08-13 Thread sindhu hosamane
i get an error when i use this below function "Attempting to call unbound function" . Whats is wrong in below snippet? How do i fix it ? (defn convert-to-float [a] (try (if (not= a " ") (read-string a)) (catch Exception e (do nil Thanks -- You received this message