Try Clojure in your browser
11–20 of 30 posts
Re: Try Clojure in your browser
#12Following the first thing in the tutorial:
Clojure> (+3 3)
java.lang.ClassCastException: java.lang.Long cannot be cast to clojure.lang.IFn
http://gyazo.com/22c613f5bb4ebda5a36d0fbc0a85b83d
What have I missed?
Re: Try Clojure in your browser
#13Ummm.... Following the first thing in the tutorial: Clojure> (+3 3) java.lang.ClassCastException: java.lang.Long cannot be cast to clojure.lang.IFn http://gyazo.com/22c613f5bb4ebda5a36d0fbc0a85b83d What have I missed?
Re: Try Clojure in your browser
#14Ummm.... Following the first thing in the tutorial: Clojure> (+3 3) java.lang.ClassCastException: java.lang.Long cannot be cast to clojure.lang.IFn http://gyazo.com/22c613f5bb4ebda5a36d0fbc0a85b83d What have I missed?
You need a space between the + and the first 3 (+ is the function you want to call).
http://gyazo.com/9d330e8bdb0537f9179c34ad2924928c
And when I click the tutorial's "(+3 3)" grey box, it inserts what looks like no space between the + and 3, and lo and behold, it works (6). And when I type it in now with no space (+3 3) it works too. :/
Re: Try Clojure in your browser
#15Earlier quoted context omitted.
You need a space between the + and the first 3 (+ is the function you want to call).
Thanks. The tutorial didn't show that: http://gyazo.com/9d330e8bdb0537f9179c34ad2924928c And when I click the tutorial's "(+3 3)" grey box, it inserts what looks like no space between the + and 3, and lo and behold, it works (6). And when I type it in now with no space (+3 3) it works too. :/
Re: Try Clojure in your browser
#16I have always been frustrated by tutorial REPLs that make me copy and paste example codes. I simply don't write them manually to CLI and I believe many people do so. Therefore maybe a link to directly paste and execute code on tutorial steps would be quite useful. Like "run this".
Re: Try Clojure in your browser
#17Re: Try Clojure in your browser
#18Re: Try Clojure in your browser
#19Re: Try Clojure in your browser
#20I found it fun to see division results returned as fractions. Has anyone here switched from Python to Clojure for data analysis? What has been their experience?
Not recommended. Matrix multiplication is really slow, even with Incanter. I doubt you'll get very far with data analysis without multiplying a few matrices so avoid.