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
wrote:
> Hi all,
>
> Quite
On May 8, 2009, at 5:02 PM, DiG wrote:
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.
I like this a lot.
One suggestion:
Keep "coll" as
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 cau