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: Mon, 02 Feb 2015 19:39:06 +0100 Message-ID: <87y4og5fat.fsf@gmail.com> 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> <87386o5fi0.fsf@udel.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422902594 4677 80.91.229.3 (2 Feb 2015 18:43:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2015 18:43:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: Mark Oteiza Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 02 19:43:09 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 1YILxk-0008KC-Kt for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2015 19:43:08 +0100 Original-Received: from localhost ([::1]:56028 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YILxj-0008Fo-Rn for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2015 13:43:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YILxV-0008Fc-OS for emacs-devel@gnu.org; Mon, 02 Feb 2015 13:42:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YILxR-0004bw-II for emacs-devel@gnu.org; Mon, 02 Feb 2015 13:42:53 -0500 Original-Received: from mail-wg0-x22f.google.com ([2a00:1450:400c:c00::22f]:51093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YILxR-0004bq-Bu for emacs-devel@gnu.org; Mon, 02 Feb 2015 13:42:49 -0500 Original-Received: by mail-wg0-f47.google.com with SMTP id n12so40488769wgh.6 for ; Mon, 02 Feb 2015 10:42:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=VfG9/n/NblPCpyRiWf2y63HoiDgVoknjYN2mGOqdMmA=; b=fwfBciY1CHpecNlAXPyKrDujQbN/8aKqVvqbxLT6O5RxHgJOi3yjH4luZiLZ0FKoyL B8cWIJaexLfsnu365GCVJ2Tq+8dVvzE/yIV0iG+TlCOSG1yYJgGJU+dwI77QMYz0GOLQ PNC1aTvEvaf08v/RiOucLGMRHVT8UgSp3J6m/hVZXV5989CvRypJ6xsdDzkykDA+Xv/m 3eOrOkcp/3N9fI6is2VBlKhngaWKfO045OfXKK72WcPjyczG5PZBipvNgHZlx1EpJzZT MWNxIp4sdwOobkiX5LN9La77RrbRexNfe12Ie5WRWaQCGdojzM4PVUxW9m23HZhhdrfu jOsg== X-Received: by 10.180.182.72 with SMTP id ec8mr27598344wic.53.1422902568736; Mon, 02 Feb 2015 10:42:48 -0800 (PST) Original-Received: from firefly (dyn069045.nbw.tue.nl. [131.155.69.45]) by mx.google.com with ESMTPSA id oo8sm17725350wjc.1.2015.02.02.10.42.48 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 02 Feb 2015 10:42:48 -0800 (PST) In-Reply-To: <87386o5fi0.fsf@udel.edu> (Mark Oteiza's message of "Mon, 02 Feb 2015 13:34:47 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::22f 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:182281 Archived-At: Mark Oteiza writes: > 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. The bad thing about aliases is that you have to remember both, so they're not helping at all. There will always be person A using alias A and person B using alias B. Both of them will have trouble to read each others code. This is why e.g. Python is so determined to have only way of doing things. Oleh