[Top][All Lists]
[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.
- Re: [Texmacs-dev] Table converision library, (continued)
[Texmacs-dev] Customization by hooks, david, 2003/02/05
[Texmacs-dev] set-before! and set-after! or cons! and rcons!, david, 2003/02/05
[Texmacs-dev] Applied patches for version 1.0.1.3, Joris van der Hoeven, 2003/02/05