help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Partition for Emacs Lisp


From: Marc Tfardy
Subject: Partition for Emacs Lisp
Date: Sun, 28 Jun 2009 15:26:13 +0200
User-agent: Thunderbird 2.0.0.22 (Windows/20090605)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]