See also "partition-all" in clojure.contrib.seq-utils.  It isn't as
feature-complete as your version, but is instead a drop-in replacement
for "partition" that always returns the final part (regardless of
whether or not it's long enough).

-Jason

On May 8, 4:02 pm, DiG <[email protected]>
wrote:
> Hi all,
>
> Quite often one need to get the last part of partition which is
> smaller than the requested partition size. This change also support
> another common case where one would like to pad the partition.
>
> Since it is such a small change I am pasting the whole function,
> instead of patch, but of cause can produce a patch against core. The
> tests are included too.
>
> http://gist.github.com/109002
>
> Regards,
> Dimitry Gashinsky (digash)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to