From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: ob-clojure will error result when contains comment Date: Thu, 13 Jul 2017 08:32:39 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a113f8e7ed5a1240554281306" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dVS59-0005ba-V7 for emacs-orgmode@gnu.org; Wed, 12 Jul 2017 20:34:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dVS56-0006bf-Qd for emacs-orgmode@gnu.org; Wed, 12 Jul 2017 20:34:16 -0400 Received: from mail-it0-f46.google.com ([209.85.214.46]:38738) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dVS56-0006as-KS for emacs-orgmode@gnu.org; Wed, 12 Jul 2017 20:34:12 -0400 Received: by mail-it0-f46.google.com with SMTP id k192so28854436ith.1 for ; Wed, 12 Jul 2017 17:34:12 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Org-mode --001a113f8e7ed5a1240554281306 Content-Type: text/plain; charset="UTF-8" Here is the examples: #+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) [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ --001a113f8e7ed5a1240554281306 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Here is the examples:

#+BEGIN_SRC clojure
(+ 1 1) ;=3D> 2

#+RESULTS:
: class clojure.lang.LispRea= der$ReaderExceptionclass java.lang.RuntimeExceptionRuntimeException EOF whi= le reading, starting at line 1 =C2=A0clojure.lang.Util.runtimeException (Ut= il.java:221)

#+BEGIN_SRC clojure :results value
(def= sum1 #(reduce + %))
(def avg1 #(/ (sum %) (count %)))

(defn stats
=C2=A0 [numbers]
=C2=A0 (map #(% numbers) [sum1 = count avg1]))

(stats [3 4 10])
;; =3D> (17 3 17/3= )

(stats [80 1 44 13 6])
;; =3D> (144 5 144/5)
#+END_SRC

#+RESULTS:
: class clojure.lang.LispRe= ader$ReaderExceptionclass java.lang.RuntimeExceptionRuntimeException EOF wh= ile reading, starting at line 1 =C2=A0clojure.lang.Util.runtimeException (U= til.java:221)


[stardiviner]=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <Hack this world!>= ;=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG key ID: 47C32433
IRC(freeenode): sta= rdiviner =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Twitter:=C2=A0 @numbchild<= br>Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36=C2=A0 CB99 B8C4 B8E5 47C3 2= 433
Blog: ht= tp://stardiviner.github.io/
--001a113f8e7ed5a1240554281306--