emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ob-clojure will error result when contains comment
@ 2017-07-13  0:32 numbchild
  2017-07-13  8:48 ` Tim Cross
  0 siblings, 1 reply; 4+ messages in thread
From: numbchild @ 2017-07-13  0:32 UTC (permalink / raw)
  To: Org-mode

[-- Attachment #1: Type: text/plain, Size: 958 bytes --]

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]           <Hack this world!>      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/

[-- Attachment #2: Type: text/html, Size: 3456 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-07-14  0:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-13  0:32 ob-clojure will error result when contains comment numbchild
2017-07-13  8:48 ` Tim Cross
2017-07-13 12:23   ` numbchild
2017-07-14  0:21     ` Tim Cross

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).