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

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

Re: How to specialize seq-concatenate and seq-into-sequence?


From: Michael Heerdegen
Subject: Re: How to specialize seq-concatenate and seq-into-sequence?
Date: Fri, 04 Mar 2022 22:54:24 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Philipp Stephani <p.stephani2@gmail.com> writes:

> I guess the idea is that `seq-concatenate' can only be specialized for
> new *result* types, not for new *argument* types.

Likely.  But that won't be enough when more sequence types are added.

I think each argument that is not one of the default types should be
silently converted into the goal type before appending the sequences.
The generic function `seq-into' seems the right place to implement the
`seq-concatenate' semantics for new sequence types.

Michael.



reply via email to

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