Expectations v2.1.1 has just been released with support for Clojure/Script.
Expectations is a Clojure(Script) testing framework where your tests are
written in a very concise manner:
(expect 4 (+ 2 2))
Check it out:
http://jayfields.com/expectations/
https://github.com/jaycfields/expectatio
(partial * 2)) +ten [0 1 2])
> (transduce (map (partial * 2)) +ten 10 [0 1 2])
>
> Reducing [0 2 4] yields 26. With 10 as init value it yields 46. After
> consuming all elements of coll, the 1-arity fn is run to provide the return
> value. Due to the [& args] form the completion stage
First: transducers are a very cool idea, and I'm really looking forward to
clojure 1.7 release when we'll be able to use them in production code.
Now, clojure 1.7 is still alpha, so here's my feedback while it's not (too)
late.
transduce has a pretty unintuitive behaviour. Suppose, you've got