5 ms·
This goes from easy/novice up to advanced level in a short amount of time. I did some koans until I arrived at functions/9 which is: (= 25 ( ___ (fn [n] (* n n
by terhechte 13y ago
This goes from easy/novice up to advanced level in a short amount of time. I did some koans until I arrived at functions/9 which is:
(= 25 ( ___ (fn [n] (* n n))))
I found this one to be not so trivial, granted I'm still a novice clojure user, but I still think that it went up rather steeply here.
I think if they really want to introduce new people to ClojureScript, then the koans need a friendly help system and the ability to show the solution and have it explained to you.
It should also have a short introduction in Lisp that explains prefix notation / s-expressions. I think that would make things a lot easier.
- DoggettCK 13y ago(fn [f] (f 5)) I do love the format, but what I like a bit better about Clojure Koans is that you can see the previous ones for a bit of a reminder. Maybe for each section, they could leave up the ones you'd successfully completed so you could refer to them. Other than that minor nitpick, I love this.
- scottdw 13y agoOr the threading macro #(-> 5 %)
- chrismonsanto 13y agoOr (fn [f] 25)
- danneu 13y ago(constantly 25)
- berdario 13y agoalso #(% 5)
- vdm 13y agoSpoiler: #(%1 5)
- MBlume 13y agoThis was exactly the koan that I felt had the biggest discontinuity, and yeah, having the previous ones visible might help.
- dizzystar 13y agoI have to say that this one came out of left field. Would have been much better at the end. Also, not sure what happened here: http://clojurescriptkoans.com/#runtime-polymorphism/4 http://clojurescriptkoans.com/#runtime-polymorphism/4 I guess it ends here?
- roryokane 13y agoIt doesn’t end there. On that page, you have to edit the code in the gray boxes at the bottom, not the big code at the top. (I recommend copying your answer to that page before you submit it; you can then adapt that answer for the problems on the next two pages.)