emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: seq-group-by returns groups in wrong order?


From: Alexander Baier
Subject: Re: seq-group-by returns groups in wrong order?
Date: Tue, 10 Feb 2015 21:31:52 +0100
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.4 (gnu/linux)

On 2015-02-09 13:21 Nicolas Petton wrote:
> Alexander Baier <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]