From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Baier Newsgroups: gmane.emacs.devel Subject: Re: seq-group-by returns groups in wrong order? Date: Tue, 10 Feb 2015 21:31:52 +0100 Message-ID: <87twytbj9j.fsf@mailbox.org> References: <8761bdi4ln.fsf@mailbox.org> <87egpzi8bf.fsf@petton.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1423601192 15705 80.91.229.3 (10 Feb 2015 20:46:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Feb 2015 20:46:32 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 10 21:46:22 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 1YLHhN-0004yH-Jl for ged-emacs-devel@m.gmane.org; Tue, 10 Feb 2015 21:46:21 +0100 Original-Received: from localhost ([::1]:41855 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLHhN-0004oo-6T for ged-emacs-devel@m.gmane.org; Tue, 10 Feb 2015 15:46:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLHca-00065S-JK for emacs-devel@gnu.org; Tue, 10 Feb 2015 15:41:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLHcV-0005fR-L9 for emacs-devel@gnu.org; Tue, 10 Feb 2015 15:41:24 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:59720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLHcV-0005ez-Ak for emacs-devel@gnu.org; Tue, 10 Feb 2015 15:41:19 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YLHcQ-0002cY-VA for emacs-devel@gnu.org; Tue, 10 Feb 2015 21:41:15 +0100 Original-Received: from nat-wh-wh36.rz.uni-karlsruhe.de ([141.70.81.154]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Feb 2015 21:41:14 +0100 Original-Received: from alexander.baier by nat-wh-wh36.rz.uni-karlsruhe.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Feb 2015 21:41:14 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: nat-wh-wh36.rz.uni-karlsruhe.de User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:VMKRlq5jm78J+i/4/KHaCnvKDAc= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:182841 Archived-At: On 2015-02-09 13:21 Nicolas Petton wrote: > Alexander Baier writes: > >> Hello, >> >> The groups returned by seq-group-by are reversed, is this intended >> behaviour? >> >> (seq-group-by #'oddp [1 2 3 4 5]) >> ;; => ((t 5 3 1) (nil 4 2)) >> >> I was expecting ((t 1 3 5) (nil 2 4)) to be returned. This is seq.el >> from elpa, version 1.1. > > I updated it both in Emacs master and GNU ELPA, and bumped the version > number to 1.1.1. I just tested the new version and found it only works with lists, but not with vectors or strings. This seems to be because (seq-)reverse only operates on lists. Regards, -- Alexander Baier