<< Zhou Bi Mathematical Manual (周髀算经) | Home | Oh, Really? (Joining the Crowd in Deriding Wolfram Day) >>

Mark Volkmann: Clojure---Functional Programming for the JVM (And a Friday Quiz)

Just want to let everyone know that Mark Volkmann did the Clojure presentation at the St. Louis Java Users Group yesterday evening.

The slides are here:

Clojure Slides

Please also check out Mark's Clojure page for an constantly updated version of his February 2009 JNB article on the same topic.

CodeToJoy did a pre-game analysis.

In honor of the presentation, today's quiz is a clojure one:

Q: What would the following code produce:

(defn f [x [y z]]
        [y [z x]])
(f 1 [2 3])
Tags :


Re: Mark Volkmann: Clojure---Functional Programming for the JVM (And a Friday Quiz)

This is related to a question that came up at the end of the presentation last night. It demonstrates a feature called destructuring that I didn't have time to cover. So here's a hint. The function expects two arguments. The second must be a vector.

Add a comment Send a TrackBack