From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleh Krehel Newsgroups: gmane.emacs.devel Subject: Re: Would seq-range and seq-mapcat be useful? Date: Fri, 30 Jan 2015 09:00:37 +0100 Message-ID: References: <878uglwmra.fsf@petton.fr> <874mr9w8at.fsf@petton.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1422604846 2572 80.91.229.3 (30 Jan 2015 08:00:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Jan 2015 08:00:46 +0000 (UTC) Cc: Stefan Monnier , emacs-devel To: Nicolas Petton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 30 09:00:45 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YH6VQ-0000fz-42 for ged-emacs-devel@m.gmane.org; Fri, 30 Jan 2015 09:00:44 +0100 Original-Received: from localhost ([::1]:35176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH6VP-0005nk-GM for ged-emacs-devel@m.gmane.org; Fri, 30 Jan 2015 03:00:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH6VM-0005nc-91 for emacs-devel@gnu.org; Fri, 30 Jan 2015 03:00:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YH6VL-0004zZ-FR for emacs-devel@gnu.org; Fri, 30 Jan 2015 03:00:40 -0500 Original-Received: from mail-we0-x230.google.com ([2a00:1450:400c:c03::230]:46381) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH6VL-0004yW-2w for emacs-devel@gnu.org; Fri, 30 Jan 2015 03:00:39 -0500 Original-Received: by mail-we0-f176.google.com with SMTP id w62so25600076wes.7 for ; Fri, 30 Jan 2015 00:00:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=aPGoZ9NiGRnpkG3Nuo2gWwXTLzE1xIavJ6PyBbThtvA=; b=svHH8cPq9ZSEuGhqtF0sOhJmpnHZvNaT0yBi9QPdtWbkMDsnlGdLno1dtIm77e+/PQ XY9IIUe8QeCX6t4wzwPJn6/tTg6HtQNnRejwhcqeXnHynbWPsjjeI84cluK8a3VkjiEZ cuTDRSVml4u+ATta67LEZ/GeDPxCMrwYK5kfQxfrjAecIqdS1TRdrP0r3oqkWXx733bW L+B2FYl7zry2G/mLsPDKaQRzrfjPnImNlFCr1TbFL7PLCT5+bFzIjWZK+ttxURyZJ+so aN+r7lyZvNF2XKrfcMb8+Y/y0tp2DY7tw/K/mo8fChVikWX4VHRKqvwNAmAIz3oIKR+4 AYRg== X-Received: by 10.180.73.112 with SMTP id k16mr2268233wiv.42.1422604837538; Fri, 30 Jan 2015 00:00:37 -0800 (PST) Original-Received: by 10.27.137.137 with HTTP; Fri, 30 Jan 2015 00:00:37 -0800 (PST) In-Reply-To: <874mr9w8at.fsf@petton.fr> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::230 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:182027 Archived-At: Hi Nicolas, On Thu, Jan 29, 2015 at 11:06 PM, Nicolas Petton 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. Oleh