diff options
author | Richard M. Stallman <rms@gnu.org> | 2003-07-22 15:23:50 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2003-07-22 15:23:50 +0000 |
commit | 1006f206691a9d2d7d9ead621889c700d70bfa41 (patch) | |
tree | f5bd5ab3e1d7bb00e3f1e30fddc4c8ea3241adc9 /lispref/lists.texi | |
parent | 66c0f0547b81362cfbe4cbad6a731a5b48481782 (diff) |
(Building Lists): Add number-sequence.
Diffstat (limited to 'lispref/lists.texi')
-rw-r--r-- | lispref/lists.texi | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lispref/lists.texi b/lispref/lists.texi index e30c7013a5..f332f13040 100644 --- a/lispref/lists.texi +++ b/lispref/lists.texi @@ -733,6 +733,20 @@ The function @code{delq} offers a way to perform this operation destructively. See @ref{Sets And Lists}. @end defun +@defun number-sequence from to &optional separation +This returns a list of numbers starting with @var{from} +and incrementing by @var{separation} (or by 1 if @var{separation} +is @code{nil} or omitted), and ending at or just before @var{to}. +For example, + +@example +(number-sequence 4 9) + @result{} (4 5 6 7 8 9) +(number-sequence 1.5 6 2) + @result{} (1.5 3.5 5.5) +@end example +@end defun + @node Modifying Lists @section Modifying Existing List Structure @cindex destructive list operations |