I’ve started learning clojure and I managed to get a few of the problems on Project Euler worked out but for whatever reason I’ve had a tough time with this one.
Here is the code I have written for it. It looks to run fine until it gets to the second outer loop. Then it fails and the error message looks like this. I did some googling for this error and it seems to be about having extra parens but I’m not seeing where they are in my code. Alas I’ve probably just overlooked something simple.
Also if there are any bad coding conventions in there please let me know.
Line 13 has an error. The
>should be prefix:The error message is telling you that a Long could not be cast to a function. (i.e. currVal is not a function)