On Tue, Jul 30, 2024 at 5:57 AM David Kastrup wrote:
> Lukas-Fabian Moser writes:
>
> > You're using append! wrong.
> > So try
> >
> > (set! fl (append fl ...))
>
> (append! '() ...)
>
> cannot modify an empty list in-place because there is only one empty
> list in the whole system and it is an
Lukas-Fabian Moser writes:
> Hi Luca,
>
> without having tested your code: You're using append! wrong.
>
> From the Guile documentation: "append! is permitted, but not required, to
> modify the given lists to form its return."
> So the exclamation mark does not imply that your list gets modified
Hi Luca,
without having tested your code: You're using append! wrong.
>From the Guile documentation: "append! is permitted, but not required, to
modify the given lists to form its return."
So the exclamation mark does not imply that your list gets modified
in-place, but rather that you don't care