Subject: Re: bug#26629: 25.1.50; Feature-request: Structure-preserving copying of sequences

From: Lars Ingebrigtsen <[email-masked]>
Date: Sat, 14 May 2022 04:18:36 +0200

Stefan Monnier <[email-masked]> writes:

> So rather than `copy-tree*` I'd rather see some kind of generic
> `deep-copy` function which takes a (or some) parameter(s) that indicates
> when (and potentially how) to copy/recurse each of the elements (where
> `deep-copy`s job would thus be mainly to take care of maintaining the
> hash-map and maybe using an explicit stack to avoid deep recursion).

Makes sense to me.  Since we're not going to include `copy-tree*' (being
too niche), I'm closing this bug report, but a more general `deep-copy'
function would be welcome, if somebody were to write it.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no