Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
thanks
That's some example code.
You don't even need to think about it just use paredit or smartparens. Any clojure editor or IDE supports it, Emacs, LightTable, Counterclockwise, Cursive. Because it's automatic, you'll feel the code flow naturally. For instance Ctrl-right on Emacs will do this for you:
()[1 2 3] -> ([1 2 3]) Ctrl-left will do the inverse. Besides that a nice IDE will have rainbowparens so you can visually gauge the depth of the s-expr.
Also I don't understand how your function tests triangularity. Could you point me to a book or provide a proof that it's true for all triangular numbers. It's fascinating really.
S-expressions close on the last word, just look at clojure's sourcecode to see what I mean.
S-expressions close on the last word just look at clojure's sourcecode.
(S-expressions
close
on the
last word)
(Don't
(do
this it looks silly lisp isn't algol
)
)