#+BEGIN_SRC clojure
(+ 1 1) ;=> 2
#+END_SRC
#+RESULTS:
: class clojure.lang.LispReader$ReaderExceptionclass java.lang.RuntimeExceptionRuntimeException EOF while reading, starting at line 1 clojure.lang.Util.runtimeException (Util.java:221)
#+BEGIN_SRC clojure :results value
(def sum1 #(reduce + %))
(def avg1 #(/ (sum %) (count %)))
(defn stats
[numbers]
(map #(% numbers) [sum1 count avg1]))
(stats [3 4 10])
;; => (17 3 17/3)
(stats [80 1 44 13 6])
;; => (144 5 144/5)
#+END_SRC
#+RESULTS:
: class clojure.lang.LispReader$ReaderExceptionclass java.lang.RuntimeExceptionRuntimeException EOF while reading, starting at line 1 clojure.lang.Util.runtimeException (Util.java:221)