Uber-newbie question: (+ '(1 2 3))

2010-03-12 Thread Giacecco
Sorry to use the forum for this, and feel free to insult me, but I've been searching for the solution to this for a couple of hours.I also have Stuart Halloway's "Programming Clojure" but the book is not very useful as a reference for this kind of problems, unless you remember by heart every exampl

Why clojure does not have remove-duplicates and delete-duplicates ?

2010-03-12 Thread Giacecco
All, Why does clojure miss lisps' remove-duplicates and delete-duplicates? I understand that delete-duplicates is destructive, so Rich cannot approve it. But what about remove-duplicates, that is not? The solution I found at http://bit.ly/byCyx2 is ridicously complex, isn't it? G. -- You rece

Re: Why clojure does not have remove-duplicates and delete-duplicates ?

2010-03-12 Thread Giacecco
Thanks, I was sure that there was an easier way. I updated the Rosetta Code's entry using 'distinct'. Giacecco On Mar 12, 6:28 pm, Mark Engelberg wrote: > You could also use the "distinct" function, if you really need a lazy > sequence. > > 2010/3/12 Mark

Can't get rlwrap to work

2008-11-12 Thread Giacecco
run it from the console, I see the following: gianfranco-cecconis-macbook-pro:clojure giacecco$ clj Clojure user=> (defmacro with-out-file [pathname & body] `(with-open stream# (new java.io.FileWriter ~pathname) (binding [*out* stream#] [EMAIL PROTECTED]))) nil user=> (def c

Newbie: cannot get slime to work

2008-11-15 Thread Giacecco
/clojure-swank") (setq swank-clojure-jar-path "/usr/local/src/clojure/target/clojure- lang-1.0-SNAPSHOT.jar") (setq swank-clojure-extra-classpaths (list "/usr/local/src/clojure- contrib/clojure-contrib.jar")) (require 'swank-clojure-autoload) === Thank you in advance! G

Re: Newbie: cannot get slime to work

2008-11-15 Thread Giacecco
misleading, though, or it was me not reading it properly? G. On Nov 15, 11:00 pm, "Bill Clementson" <[EMAIL PROTECTED]> wrote: > Hi Giacecco, > > > > On Sat, Nov 15, 2008 at 2:27 PM, Giacecco <[EMAIL PROTECTED]> wrote: > > > I am using Aquamacs on Ma