From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.devel Subject: Re: Would seq-range and seq-mapcat be useful? Date: Mon, 02 Feb 2015 13:34:47 -0500 Message-ID: <87386o5fi0.fsf@udel.edu> References: <878uglwmra.fsf@petton.fr> <874mr9w8at.fsf@petton.fr> <87lhkkefhn.fsf@petton.fr> <87egq95g10.fsf@petton.fr> <8761bk3g87.fsf@gmail.com> <87d25s64sn.fsf@petton.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422902115 28785 80.91.229.3 (2 Feb 2015 18:35:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2015 18:35:15 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 02 19:35:10 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 1YILq1-0003DT-Ri for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2015 19:35:09 +0100 Original-Received: from localhost ([::1]:56003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YILq1-0005B3-4g for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2015 13:35:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YILpl-0005Ax-Pi for emacs-devel@gnu.org; Mon, 02 Feb 2015 13:34:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YILph-00023x-Op for emacs-devel@gnu.org; Mon, 02 Feb 2015 13:34:53 -0500 Original-Received: from mail-qa0-f41.google.com ([209.85.216.41]:45719) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YILph-00023p-LN for emacs-devel@gnu.org; Mon, 02 Feb 2015 13:34:49 -0500 Original-Received: by mail-qa0-f41.google.com with SMTP id bm13so30413534qab.0 for ; Mon, 02 Feb 2015 10:34:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=1WwsfKxMe/ZQVRNs/rRU5YDgzH7HEA3Iwm8eBVtLhz8=; b=OygXSI2+2kGb4XjE2HjDlTZh1ixwnvRmjbhZYtllwVQi+pB5UaHmT+PtMIfLDGcywX 9fo4B/B6UhOvKpLhYxpxnplIP3xQS9QGAEyZzLtJ5Ur+ha1aGYm8Nu/mlZnn9zz9Oxgd NeTP+JEXkcJ7Yre+RSI89JHJD/NG2H0GMQYOPPXRqV4Sm89xBiALqX7SKI0iHCuSA0KX KZyavEwhhawqrMmBxar0dD+jDl4RjtYzIMdJDjFKlbU1OnFdC05dwP212OjvJsDogHkm J0E0YnzwGihF/XDSy8sYubwZ5zwu5Ze3q6adkAdCzoBNfNtwo71vD8dXPlsowYGrN1ZY l/5A== X-Gm-Message-State: ALoCoQmBvezPJ+DS9j5coEnhU/U3qnya3ksBB/g+PGD00bjvm9r2JAlEDGXYVh5DHHkB966nAJyX X-Received: by 10.224.96.130 with SMTP id h2mr43992340qan.85.1422902088715; Mon, 02 Feb 2015 10:34:48 -0800 (PST) Original-Received: from holos (c-73-163-124-41.hsd1.md.comcast.net. [73.163.124.41]) by mx.google.com with ESMTPSA id n4sm19019134qas.20.2015.02.02.10.34.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Feb 2015 10:34:48 -0800 (PST) In-Reply-To: <87d25s64sn.fsf@petton.fr> (Nicolas Petton's message of "Mon, 02 Feb 2015 10:28:24 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.216.41 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:182280 Archived-At: Nicolas Petton writes: > Oleh Krehel writes: >> I like `seq-group-by`. >> >> I'm not sure about `seq-mapcat`, since there is `cl-mapcan` (although >> it's destructive), I guess `seq-mapcat` would be fine. >> >> And I would prefer the name `seq-partition` instead of `seq-slice`, >> since `partition' is a Clojure name with same effect, and slice means >> something different in Python. > > Yes, I felt the same. Makes sense. Array slicing seems to be just taking a subsequence in a lot of languages. Perhaps aliasing seq-slice to seq-subseq would be good to do.