[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
- Would seq-range and seq-mapcat be useful?, Nicolas Petton, 2015/01/29
- Re: Would seq-range and seq-mapcat be useful?, Artur Malabarba, 2015/01/29
- Re: Would seq-range and seq-mapcat be useful?, Stefan Monnier, 2015/01/29
- Re: Would seq-range and seq-mapcat be useful?, Nicolas Petton, 2015/01/29
- Re: Would seq-range and seq-mapcat be useful?, Stefan Monnier, 2015/01/30
- Re: Would seq-range and seq-mapcat be useful?, Oleh Krehel, 2015/01/30
- Re: Would seq-range and seq-mapcat be useful?,
Nicolas Petton <=
- Re: Would seq-range and seq-mapcat be useful?, Oleh Krehel, 2015/01/30
- Re: Would seq-range and seq-mapcat be useful?, Nicolas Richard, 2015/01/30
- Re: Would seq-range and seq-mapcat be useful?, Oleh Krehel, 2015/01/30
- Re: Would seq-range and seq-mapcat be useful?, Oleh Krehel, 2015/01/30
- Re: Would seq-range and seq-mapcat be useful?, Nicolas Richard, 2015/01/30
- Re: Would seq-range and seq-mapcat be useful?, Oleh Krehel, 2015/01/30
- Re: Would seq-range and seq-mapcat be useful?, Nicolas Petton, 2015/01/30
What about seq-slice? (Was: Would seq-range and seq-mapcat be useful?), Mark Oteiza, 2015/01/30