On Nov 21, 9:03 pm, Stuart Sierra <[EMAIL PROTECTED]> wrote:
> Hi Steve,
> Although the reduce is very Lispy, in this case it might be clearer
> with loop/recur:
>
Thanks for your rewrite. I don't see if-let in the website API
documentation. I suppose I should track the latest instead of using
the release.
> It could go in clojure.contrib.seq-utils. I'll add it there if you
> like.
> -Stuart Sierra
That'd be fine. One thing that strikes me is that the (if (< num
sample-size) ...) test is unnecessary after sample-size has been
reached. It might be better to write it as two loops for that reason.
-- Steve
--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---