I try to solve a exercisim.io challenge.
The code so far looks like this :
"Returns the annual balance update, taking into account the interest rate."
(* balance (/ interest-rate(balance) 100)))
but I see this error message :
An unexpected error occurred:
java.lang.ClassCastException: java.math.BigDecimal cannot be cast to clojure.lang.IFn
What do I do wrong?
This part is wrong:
interest-rate is a function and you wanted to call it on
balance, then it should be
That specific error message is due to the
(balance) part. Clojure treats it as calling a function that’s referred to by
balance is, apparently, an instance of
BigDecimal, JVM throws that error.
Thanks, still a lot to learn.