|
Subject: List of pairs. From: Alexander Taranov <tay@xxxxxxxxxx> Date: Tue, 30 Dec 1997 14:52:50 +0300 |
Andrei Kaikov writes:
> Hi, everyone!
>
> Could somebody send me an example of procedure that gets alist and two
> objects and adds them to the list as a new pair.
> I just want to see the right way to do it because I think that I got all
> that wrong.
>
> (define (add-to-alist alist obj1 obj2)
(cons (cons obj1 obj2) alist)
;; or (cons (list obj1 obj2) alist) if you prefer this structure
of alist
> ...)
>
> Thanks in advance,
> Andrei Kaikov.
>
>
> DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| List of pairs., Andrei Kaikov | Thread | Howto change appearance with modula, Christian Leutloff |
| List of pairs., Andrei Kaikov | Date | scheme/dsssl question, David Megginson |
| Month |