Re: Miscellanea prompted by a comp.lang.lisp post about Clojure

2009-08-05 Thread Meikel Brandmeyer
Hi, On Aug 5, 8:05 am, John Harrop wrote: > I just saw someone post a bunch of Clojure code to comp.lang.lisp one > function from which was: > > (defn partition-with [pred coll] >   (loop [in coll curr [] out []] >     (if (empty? in) >       (conj out curr) >       (let [obj (first in)] >      

Re: Miscellanea prompted by a comp.lang.lisp post about Clojure

2009-08-05 Thread B Smith-Mannschott
On Wed, Aug 5, 2009 at 08:05, John Harrop wrote: > I just saw someone post a bunch of Clojure code to comp.lang.lisp one > function from which was: > (defn partition-with [pred coll] >   (loop [in coll curr [] out []] >     (if (empty? in) >       (conj out curr) >       (let [obj (first in)] >   

Miscellanea prompted by a comp.lang.lisp post about Clojure

2009-08-05 Thread John Harrop
I just saw someone post a bunch of Clojure code to comp.lang.lisp one function from which was: (defn partition-with [pred coll] (loop [in coll curr [] out []] (if (empty? in) (conj out curr) (let [obj (first in)] (if (pred obj) (recur (rest in) [] (conj out curr