Try partition-all in clojure.contrib.seq-utils
On Aug 5, 10:38 am, Sean Devlin <francoisdev...@gmail.com> wrote:
> Hey all,
> I'm looking for a variation on partition.
>
> user=>(def my-vec [:a :b :c :d :e])
>
> ;normal behavior
> user=>(partition 2 my-vec)
> ((:a :b) (:c :d))
>
> The behavior I want is
> user=>(psuedo-partition 2 my-vec)
> ((:a :b) (:c :d) (:e))
>
> Any suggestions?
> Sean
--~--~---------~--~----~------------~-------~--~----~
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.
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
-~----------~----~----~----~------~----~------~--~---