help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: seq-mapn and circular lists


From: John Mastro
Subject: Re: seq-mapn and circular lists
Date: Wed, 14 Dec 2016 15:32:44 -0800

Plamen Tanovski <address@hidden> wrote:
> Hi,
>
> while cl-map works fine on circular lists, seq-mapn just freezes
>
> (let ((l1 '#1=(1 . #1#)))
>   ; (map 'list #'+ '(3 4 5 7) l1)
>   (seq-mapn #'+ '(3 4 5 7) l1))
>
> Making the circular list with setcdr or nconc doesn't help. Any
> suggestions?

Indeed, seq-map and seq-mapn do not attempt to identify or handle circular
lists. My advice would be to avoid circular lists, or stick to `cl-map' if you
must accommodate them :)

Since seq.el is developed as part of Emacs, you can use `M-x report-emacs-bug'
to submit a feature request.

        John



reply via email to

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