emacs-devel
[Top][All Lists]
Advanced

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

Re: Would seq-range and seq-mapcat be useful?


From: Nicolas Petton
Subject: Re: Would seq-range and seq-mapcat be useful?
Date: Fri, 30 Jan 2015 11:21:08 +0100
User-agent: mu4e 0.9.9.6pre3; emacs 24.4.1

Oleh Krehel <address@hidden> writes:

> Hi Nicolas,
>
> On Thu, Jan 29, 2015 at 11:06 PM, Nicolas Petton <address@hidden> wrote:
>
>> Sure, `seq-range' would be a convenient way to create a sequence of
>> numbers. A simple implementation could be:
>>
>> (defun seq-range (start end)
>>   (let ((lst nil))
>>     (while (< start end)
>>       (push end lst)
>>       (setq end (1- end)))
>>     lst))
>
> This is just `number-sequence' from subr.el.

Indeed :)

Nico
-- 
Nicolas Petton
http://nicolas-petton.fr




reply via email to

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