[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `append' vs. `nconc'
From: |
Emanuel Berg |
Subject: |
Re: `append' vs. `nconc' |
Date: |
Thu, 31 Dec 2015 08:13:41 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
"Pascal J. Bourguignon" <pjb@informatimago.com>
writes:
> You must remember the literal/immutable status of
> each item at each level.
>
> Since you are incapable of remembering it, you
> should assume that the whole input data is immutable
> and write purely functional code (ie. use append,
> not nconc) in general.
OK, so you use `nconc' when you yourself create the
lists by hand and thus know they are not empty, all
the while using `list' and not ', and when done you
assign the result to a variable associated with a list
INSTEAD of using `nconc' directly because that
variable can hold the empty list, i.e. nil, which
`nconc' contrary to `append' cannot handle. And you do
this to save time!
Now I got it right!
--
underground experts united
http://user.it.uu.se/~embe8573
- `append' vs. `nconc' (was: Re: Error: Setting the shell in sh-mode via a local variable does not work), (continued)
- `append' vs. `nconc' (was: Re: Error: Setting the shell in sh-mode via a local variable does not work), Emanuel Berg, 2015/12/30
- Re: `append' vs. `nconc', Teemu Likonen, 2015/12/30
- Re: `append' vs. `nconc', Emanuel Berg, 2015/12/30
- Message not available
- Re: `append' vs. `nconc', Pascal J. Bourguignon, 2015/12/30
- Re: `append' vs. `nconc', Emanuel Berg, 2015/12/30
- Re: `append' vs. `nconc', tomas, 2015/12/31
- Re: `append' vs. `nconc', Emanuel Berg, 2015/12/31
- Message not available
- Re: `append' vs. `nconc', Pascal J. Bourguignon, 2015/12/31
- Re: `append' vs. `nconc', Emanuel Berg, 2015/12/30
- Message not available
- Re: `append' vs. `nconc', Pascal J. Bourguignon, 2015/12/31
- Re: `append' vs. `nconc',
Emanuel Berg <=
- Re: `append' vs. `nconc', tomas, 2015/12/31
- side effects, list sharing [was: `append' vs. `nconc'], Drew Adams, 2015/12/31
- Re: side effects, list sharing [was: `append' vs. `nconc'], Emanuel Berg, 2015/12/31
- RE: side effects, list sharing [was: `append' vs. `nconc'], Drew Adams, 2015/12/31
- Re: `append' vs. `nconc', Emanuel Berg, 2015/12/31
- Message not available
- Re: `append' vs. `nconc', Barry Margolin, 2015/12/31
- Message not available
- Re: `append' vs. `nconc', Pascal J. Bourguignon, 2015/12/31
- Message not available
- Re: `append' vs. `nconc', Teemu Likonen, 2015/12/31
- Re: `append' vs. `nconc', Emanuel Berg, 2015/12/31
- Re: `append' vs. `nconc', Teemu Likonen, 2015/12/31