[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Would seq-range and seq-mapcat be useful?
From: |
Ted Zlatanov |
Subject: |
Re: Would seq-range and seq-mapcat be useful? |
Date: |
Wed, 04 Feb 2015 07:02:35 -0500 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) |
On Thu, 29 Jan 2015 23:06:50 +0100 Nicolas Petton <address@hidden> wrote:
NP> Stefan Monnier <address@hidden> writes:
>> I have no idea what those names are supposed to evoke. Can you tell us
>> what they'd do?
NP> Sure, `seq-range' would be a convenient way to create a sequence of
NP> numbers. A simple implementation could be:
NP> (defun seq-range (start end)
NP> (let ((lst nil))
NP> (while (< start end)
NP> (push end lst)
NP> (setq end (1- end)))
NP> lst))
Take a look at rtree.el as well for range trees.
Ted
- Re: Would seq-range and seq-mapcat be useful?,
Ted Zlatanov <=