Fork me on GitHub

Does anyone know a way to only get the last return value in the results of org-babel for Clojure? Here is an example how it behaves:

#+BEGIN_SRC clojure
    (defn foo [x] (inc x))
    (foo 2)

    : #'user/foo3
I would only want to have "3" in the results. No luck so far with the headers, like :output etc.


Interestingly this behaves differently for emacs-lisp for example:

#+BEGIN_SRC emacs-lisp
    (+ 1 1)
    (+ 3 4)

    : 7