unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Partition for Emacs Lisp
@ 2009-06-28 13:26 Marc Tfardy
  2009-06-28 17:52 ` Pascal J. Bourguignon
  2009-06-28 17:53 ` Xah Lee
  0 siblings, 2 replies; 13+ messages in thread
From: Marc Tfardy @ 2009-06-28 13:26 UTC (permalink / raw)
  To: help-gnu-emacs

Hi!

I looking for a ELISP function that do the job like Partition in
Mathematica. The simplest case:

(partition '(a b c d e f) 2)

should return:
((a b) (c d) (e f))

Is there something ready out from the box?


In more sophisticated cases one can define overlap with offset and much
more interesting things - look at:
http://documents.wolfram.com/mathematica/functions/Partition

regards
Marc



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-07-01 22:32 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-28 13:26 Partition for Emacs Lisp Marc Tfardy
2009-06-28 17:52 ` Pascal J. Bourguignon
2009-06-28 18:34   ` Marc Tfardy
2009-06-28 20:16   ` Marc Tfardy
2009-06-28 20:46     ` TomSW
2009-06-28 20:53   ` Johan Bockgård
2009-06-28 17:53 ` Xah Lee
2009-06-28 20:11   ` Marc Tfardy
2009-06-28 21:10     ` TomSW
2009-07-01 22:32       ` DanL
2009-06-29  0:46   ` Vassil Nikolov
2009-06-29  8:56     ` Andreas Röhler
2009-06-29 19:22       ` Sean Sieger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).