Hi,
On Feb 22, 7:22 am, Mike K wrote:
> (defn join-vecs [v1 v2]
> (let [v2len (count v2)]
> (cond
> (zero? v2len) v1
> (= v2len 1) (conj v1 (first v2))
> true (recur (conj v1 (first v2)) (rest v2)
>
> (defn append [& vecs] (reduce join-vecs [] vecs))
>
> user> (append '[
Thanks, I ended up using Allegro via Lispbox here.
http://www.gigamonkeys.com/lispbox/#download
Mike
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members ar
On Feb 19, 6:23 am, Chouser wrote:
> In Clojure, if you could use conj on a vector but instead use
> concat on a list, you'll end up with code that is both
> non-idiomatic and runs slower than necessary.
I found the exercise of doing the equivalent with Clojure vectors
pretty challenging. Give
Mike,
Finally, can anyone recommend a good free common lisp implementation
that runs well with slime / emacs under Windows?
SBCL is excellent. So is Clozure CL.
Regards,
BG
--
Baishampayan Ghose
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To
I was totally misunderstood the question.
Please ignore my response.
Takasa
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patie
Hi Mike,
I am also a newbie for Clojure.
On 19 February 2010 15:18, Mike K wrote:
> Regarding "append" from CL: ISTM that this is similar to "concat" in
> Clojure. I tried the following definition:
How about this?
user=> (defn append [& parts] parts)
#'user/append
user=> (append '(a b c) '(d
On Thu, Feb 18, 2010 at 11:18 PM, Mike K wrote:
> Hey Clojurians,
>
> I'm a Clojure and Common Lisp newbie. I heard that Norvig's PAIP was a
> good book to study idiomatic CL code, so I've embarked on a project to
> translate the examples to / work the exercises in Clojure. I hope to
> complete t
On 19 February 2010 15:18, Mike K wrote:
> Hey Clojurians,
>
> I'm a Clojure and Common Lisp newbie. I heard that Norvig's PAIP was a
> good book to study idiomatic CL code, so I've embarked on a project to
> translate the examples to / work the exercises in Clojure. I hope to
> complete this pro