From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Petton Newsgroups: gmane.emacs.devel Subject: Re: Would seq-range and seq-mapcat be useful? Date: Fri, 30 Jan 2015 11:21:08 +0100 Message-ID: <87lhkkefhn.fsf@petton.fr> References: <878uglwmra.fsf@petton.fr> <874mr9w8at.fsf@petton.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422613290 10182 80.91.229.3 (30 Jan 2015 10:21:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Jan 2015 10:21:30 +0000 (UTC) Cc: Nicolas Petton , Stefan Monnier , emacs-devel To: Oleh Krehel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 30 11:21:27 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 1YH8hW-0002Z7-NR for ged-emacs-devel@m.gmane.org; Fri, 30 Jan 2015 11:21:22 +0100 Original-Received: from localhost ([::1]:35871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH8hV-0005rM-Tq for ged-emacs-devel@m.gmane.org; Fri, 30 Jan 2015 05:21:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH8hP-0005r6-0O for emacs-devel@gnu.org; Fri, 30 Jan 2015 05:21:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YH8hL-0000oI-Hb for emacs-devel@gnu.org; Fri, 30 Jan 2015 05:21:14 -0500 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:35398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH8hL-0000o9-Aa for emacs-devel@gnu.org; Fri, 30 Jan 2015 05:21:11 -0500 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id ECF7A20856 for ; Fri, 30 Jan 2015 05:21:10 -0500 (EST) Original-Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Fri, 30 Jan 2015 05:21:10 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:references:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-type; s= smtpout; bh=iKA5RlKG4QOC7MzQco9RvU/VfBk=; b=Djr191PitRRj2vxsK/+2 HeHqqUErK4iry/snrntGiCLgb4D2AEh3J5wxAnTrHjH9TFaR6HY/S72rGrFPbQ14 vDZgR2L1VPKKwBBd07n31krzEfIrrK7RGKIsNEGGrD+0TI1PfZGQcNTnrRyl9EIO YGCvTQ8ggT+pOrd3UEvS83g= X-Sasl-enc: d9VFXGIUSOpe9uHEOF0u/lhur1I5wIlueolyljhZ4rdH 1422613270 Original-Received: from blueberry (unknown [31.211.216.84]) by mail.messagingengine.com (Postfix) with ESMTPA id 0C6C4680106; Fri, 30 Jan 2015 05:21:09 -0500 (EST) User-agent: mu4e 0.9.9.6pre3; emacs 24.4.1 In-reply-to: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.27 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:182039 Archived-At: Oleh Krehel writes: > 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. Indeed :) Nico -- Nicolas Petton http://nicolas-petton.fr