News for hackers. Stuff that matters.
Re:2 is a code smell by Jach on Wednesday October 12, 2011 @11:53AM (#3103363)
Cache: http://webcache.googleusercontent.com/search?q=cache%3Ahttp%...

tl;dr Clojure is awesome. And use

    (defn add-vectors [& vs]
     (vec (apply map + vs)))
instead of

    (defn add-vectors [va vb]
     [(+ (first va) (first vb)) (+ (second va) (second vb))])
since in Clojure code that operates on 1 or N things is usually better than some other fixed value. (Like 2.)

There are no comments on this comment yet.