On Tue, Jan 13, 2009 at 3:12 AM, GS <gsincl...@gmail.com> wrote:
>
> Should that "seq" be "seq?".  If not, why not?

Nick nailed that one.

> The general question it raises for _me_ is this: why is such a basic,
> useful and generally applicable function like 'chunk not included in
> the core?  Or 'random-element?

'chunk' is very similar to the built-in 'partition', the difference
being how the last group is handled.

user=> (partition 2 '[a b c d e])
((a b) (c d))

--Chouser

--~--~---------~--~----~------------~-------~--~----~
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 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to