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: seq-group-by returns groups in wrong order? Date: Sun, 08 Feb 2015 11:50:42 +0100 Message-ID: <87lhk8isn1.fsf@petton.fr> References: <8761bdi4ln.fsf@mailbox.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1423392663 26947 80.91.229.3 (8 Feb 2015 10:51:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Feb 2015 10:51:03 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alexander Baier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 08 11:51:01 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 1YKPS8-0002nJ-4W for ged-emacs-devel@m.gmane.org; Sun, 08 Feb 2015 11:51:00 +0100 Original-Received: from localhost ([::1]:56096 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKPS7-0002Qy-DP for ged-emacs-devel@m.gmane.org; Sun, 08 Feb 2015 05:50:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKPS3-0002ON-PT for emacs-devel@gnu.org; Sun, 08 Feb 2015 05:50:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKPS0-0006iL-Jz for emacs-devel@gnu.org; Sun, 08 Feb 2015 05:50:55 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:55544) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKPS0-0006iB-GM for emacs-devel@gnu.org; Sun, 08 Feb 2015 05:50:52 -0500 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id E147E204DE for ; Sun, 8 Feb 2015 05:50:50 -0500 (EST) Original-Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Sun, 08 Feb 2015 05:50:50 -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=7OTM8vAhQheOqdtEzT4h4jXsH18=; b=XqNP3WwPiesKfHNDJJtD HN6MB8zF5PdGgH2saNYq7L1Sg7hb2guNSWIsP5hu14LKWHHn3BJ1a9yV0i8dp+1F hzOzKaXQrVwN0BOL1LjMf/hfavAgRV0tXYbh3F1tIg42eDTcUp//0ZXzQzmzNHMN s3OSdAAQAv9NHqTjjRS076M= X-Sasl-enc: pTB/503b7+ykKMGDtMrY//MWGfGfTPwR7eReVkKWPFV9 1423392649 Original-Received: from blueberry (unknown [86.69.211.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 3507E6800EF; Sun, 8 Feb 2015 05:50:47 -0500 (EST) User-agent: mu4e 0.9.9.6pre3; emacs 24.4.1 In-reply-to: <8761bdi4ln.fsf@mailbox.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.25 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:182629 Archived-At: 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. Indeed, it would be much better. I will fix it as soon as possible. Cheers, Nico -- Nicolas Petton http://nicolas-petton.fr