Fork me on GitHub
#emacs
<
2015-08-23
>
nblumoe15:08:50

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)
    #+END_SRC

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

nblumoe16:08:34

Interestingly this behaves differently for emacs-lisp for example:

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

    #+RESULTS:
    : 7