texmacs-dev
[Top][All Lists]
Advanced

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

Re: [Texmacs-dev] set-before! and set-after! or cons! and rcons!


From: david
Subject: Re: [Texmacs-dev] set-before! and set-after! or cons! and rcons!
Date: Wed, 5 Feb 2003 16:47:10 +0100
User-agent: Mutt/1.4i

On Wed, Feb 05, 2003 at 04:41:19PM +0100, address@hidden wrote:
> In that sense, cons! does not make much sense, but rcons! does have an
> obvious implementation:
> 
> (define (rcons! l x) (set-cdr! (last-pair l) (list x)))
> 
> But that is not what set-after! does...

I actually meant

  (define (rcons! l x) (set-cdr! (last-pair l) (list x)) l)

to evaluate to the modified list.




reply via email to

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