21 May '12, 10am

That's this kind of articles I benefit from the most - #Clojure: partial and comp

Clojure provides a few different options for creating functions inline: fn (or the #() reader macro ), partial, and comp. When I first got started with Clojure I found I could do everything with fn and #(); and that's a good place to start. However, as I produced more Clojure code I found there were also opportunities to use both partial and comp to create more concise code. The following examples are contrived. They will show how partial and comp can be used; however, they aren't great examples of when they should be used. As always, context is important, and you'll need to decide when (or if) you want to use either function. The partial function takes a function and fewer than the normal arguments to the function, and returns a function that takes a variable number of additional args. When called, the returned function calls the function with the specified args and any a...

Full article: http://blog.jayfields.com/2011/01/clojure-partial-and-com...

Tweets

Agile Development with Clojure

Agile Development with Clojure

blog.jayfields.com 15 May '12, 11am

If you've ever spent any time learning Rails then you probably read one of the editions of Agile Web Development with Rail...

Clojure: expectations, colorized

Clojure: expectations, colorized

blog.jayfields.com 24 May '12, 1pm

The current version of expectations (1.4.3) prints colorized results by default on non-windows boxes. The following screen...

Woman on workers' comp caught running races (in...

news.runnersworld.com 18 May '12, 8pm

By Scott Douglas A Florida resident and former mail carrier has been convicted of health care fraud after seeking workers'...

Oops... Mail carrier seeking workers' comp bust...

news.runnersworld.com 18 May '12, 8pm

By Scott Douglas A Florida resident and former mail carrier has been convicted of health care fraud after seeking workers'...