[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Appending lists
From: |
Emanuel Berg |
Subject: |
Re: Appending lists |
Date: |
Sat, 19 Jun 2021 01:38:12 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
tomas wrote:
> (setq lst '(a b c d dacapo))
> => (a b c d dacapo)
>
> (cddddr lst)
> => (dacapo) ;;; OK, it's the last one.
>
> (setcdr (cddddr lst) lst)) ;;; make circular list [1]
> => (a b c d dacapo a b c d dacapo a . #5) ;;; uh, whatever (see below [2])
>
> lst
> => (a b c d dacapo a b c d dacapo a . #5) ;;; (see below [2])
>
> (setq otherlst (copy-tree lst)) ;;; TIGHTEN YOUR GOGGLES!
> => ... ;;; [3]
>
> As I said above: you (most probably) can get your Emacs back
> with C-g.
Ha ha, how do you come up with these things?
--
underground experts united
https://dataswamp.org/~incal
Re: Appending lists, Pierpaolo Bernardi, 2021/06/14
Re: Appending lists, Drew Adams, 2021/06/16
- Re: Appending lists, tomas, 2021/06/17
- Re: Appending lists,
Emanuel Berg <=
- Re: Appending lists, Emanuel Berg, 2021/06/18
- Re: Appending lists, tomas, 2021/06/19
- Re: Appending lists, Emanuel Berg, 2021/06/19
- RE: [External] : Re: Appending lists, Drew Adams, 2021/06/19
- Re: [External] : Re: Appending lists, Emanuel Berg, 2021/06/20
- Re: [External] : Re: Appending lists, Emanuel Berg, 2021/06/20
- Re: [External] : Re: Appending lists, Jean Louis, 2021/06/20
- Re: [External] : Re: Appending lists, Emanuel Berg, 2021/06/20
Re: [External] : Re: Appending lists, Jean Louis, 2021/06/20
Re: [External] : Re: Appending lists, Emanuel Berg, 2021/06/20