Re: org-mode Clojure babel

2016-01-07 Thread Martin Clausen
t; org.sonatype.aether.util.artifact.DefaultArtifact. > (DefaultArtifact.java:56) > cemerick.pomegranate.aether$artifact.invoke (aether.clj:222) > cemerick.pomegranate.aether$dependency.invoke (aether.clj:230) > cemerick.pomegranate.aether$resolve_dependencies_STAR_$fn__190.invoke > (ae

Re: org-mode Clojure babel

2016-01-06 Thread Martin Clausen
If you update to cider/cider-nrepl 0.11.0-snapshot in your .lein/profiles.clj that should fix the problem. On Wed, Jan 6, 2016 at 1:02 PM Johannes wrote: > BUT!!! > > With cider-nrepl set to 0.10.0 and cider set to 0.11.0-snapshot emacs > complains: > WARNING: CIDER requires nREPL 0.2.12 (or new

Re: Working with zippers and trees

2013-11-27 Thread Martin Clausen
You are right, but why is this a problem? The zipper works as intended and if you need to detect leaf nodes, that kan be done by checking for the presence of a non-empty value of the children key. On Wed, Nov 27, 2013 at 2:18 PM, dabd wrote: > Your map-tree is exactly like an xml-zip. > The probl

Re: Working with zippers and trees

2013-11-27 Thread Martin Clausen
Ah, sorry. You could use a map-tree instead. It is a bit more verbose, but I believe it does what you want. (defn map-tree [root] (z/zipper map? #(seq (:cs %)) (fn [node children] (assoc node :cs (and children (apply vector children roo

Re: Working with zippers and trees

2013-11-26 Thread Martin Clausen
Yes, for instance like this: (let [vz (z/vector-zip [1 [2] [3 [4 5]]])] (loop [loc vz] (if (z/end? loc) (z/root loc) (recur (z/next (if (and (integer? (z/node loc)) (odd? (z/node loc))) (z/replace loc (* 2 (z/node loc)))

Re: [ANN] clj-wamp : a WebSocket sub-protocol for HTTP Kit

2013-06-24 Thread Martin Clausen
That is a great tutorial Christopher. Really easy to follow. You might want link the use of CURI (should be CURIE right?) in your code example to the explanation of prefix shortening, as it is not readily apparent that these are linked(at least not to me). Martin On Mon, Jun 24, 2013 at 5:15 PM,

Re: Literate Clojure - a good lead ...

2010-07-22 Thread Martin Clausen
No it is right. The .org file can be found in the source code archive: http://genprog.adaptive.cs.unm.edu/asm/asm-gp.tar.bz2 /mac On Thu, Jul 22, 2010 at 12:00 PM, Tassilo Horn wrote: > On Thursday 22 July 2010 03:41:15 martin_clausen wrote: > > Hi Martin, > >> A good example of this for a non-