Re: docstrings of if-let and when-let incorrect

2012-05-15 Thread Dan Cross
On Tue, May 15, 2012 at 3:47 PM, Walter Tetzner wrote: > On Tuesday, May 15, 2012 3:41:58 PM UTC-4, Dan Cross wrote: >> My own personal opinion is that it makes sense in combination with 'and', >> but others may feel differently.  E.g., >> >>     (when-let [a

Re: docstrings of if-let and when-let incorrect

2012-05-16 Thread Dan Cross
are in > scope and what would be their values? None of the bindings should be in scope. - Dan C. -- 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 ne

Re: question about cons function

2011-11-08 Thread Dan Filimon
Hi Nicholas! I think the answer you're looking for is best explained by Michał in this StackOverflow post: http://stackoverflow.com/questions/3008411/clojure-seq-cons-vs-list-conj -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this grou

Resources on optimizing Clojure code

2010-11-02 Thread Dan Kefford
out there. Thanks in advance, dan kefford -- 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 patient with your first post.

Re: Resources on optimizing Clojure code

2010-11-03 Thread Dan Kefford
is nowhere near optimal, and I know that in order to efficiently solve a lot of the Euler problems, you cannot simply brute force them; you need to choose your algorithm wisely. Anyway... any suggestions would be greatly appreciated. dan kefford On Nov 2, 4:52 pm, Alan wrote: > Usually it'

Re: Resources on optimizing Clojure code

2010-11-03 Thread Dan Kefford
One idea that I had was to inline the factoring logic into twice- composite. Who cares about the factors? We just want to know if there are two or not: (defn twice-composite? [n] (loop [ps prime-seq tmp n p-count 0] (if (< 2 p-count) false (if (= 1 tmp)

Re: a handy little function I haven't seen before

2011-02-02 Thread Dan Larkin
George this is super cool! I can't wait to see this show up in swank-clojure *ahem* Phil. On Feb 2, 2011, at 12:03 PM, George Jahad wrote: > > show's a very cool function, but has a different purpose, (afaik). > > It displays the structure of an instance, but not it's contents. get- > all-f

Re: newby problems running clojure on Mac OS X

2008-11-10 Thread Dan Larkin
ant and svn are in /usr/bin/ on my leopard install, which means they either came with OS X itself or the OS X development tools. I'd check if you've got them already before installing. On Nov 10, 2008, at 11:15 AM, Justin Henzie wrote: > > I am using the svn version 1086 and this works fin

<    1   2   3