31 Oct '13, 7am

Didn't know clojure desctructuring could be nested! Really impressive

destructuring is described as a mini-language within Clojure. It's not essential to learn this mini-language; however, as the authors of TJoC point out, destructuring facilitates concise, elegant code. What is destructuring?Clojure supports abstract structural binding, often called destructuring, in let binding lists, fn parameter lists, and any macro that expands into a let or fn. -- http://clojure.org/special_forms The simplest example of destructuring is assigning the values of a vector.user=> (def point [5 7]) #'user/point user=> (let [[x y] point] (println "x:" x "y:" y)) x: 5 y: 7 note: I'm using let for my examples of destructuring; however, in practice I tend to use destructuring in function parameter lists at least as often, if not more often. I'll admit that I can't remember ever using destructuring like the first example, but it's a good starting point. A more r...

Full article: http://blog.jayfields.com/2010/07/clojure-destructuring.html

Tweets

"When Should You Use Clojure's OO Features?" by...

thinkrelevance.com 07 Nov '13, 3pm

When Should You Use Clojure's Object-Oriented Features? Tags: clojure , protocol , and type In the world of object-oriente...

What kids should know.... #spoton

lucidcafe.com 29 Oct '13, 3am

What You Should Know A short list of what every kid should know about what life is REALLY like . . . Life is NOT fair, get...

So What does a Clusterfuck Really Look Like?

ricksblog.com 31 Oct '13, 1pm

Yep, hide the kids. No asterisk today. Today I get to ask a real question. So what does a Clusterfuck Really Look like? Se...

Impressive Laser Harp

Impressive Laser Harp

hackaday.com 30 Oct '13, 8pm

If you’ve never seen one of these before you’re in for a treat! A laser harp is a digital instrument that requires a synth...

Bitcoin hits $200 but where did this digital money trend really start?

Bitcoin hits $200 but where did this digital mo...

pandodaily.com 28 Oct '13, 1pm

Bitcoin hits $200 but where did this digital money trend really start? By Will Bancroft On October 28, 2013 In recent days...