List of pairs.

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
  • List of pairs.
    • Andrei Kaikov - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id GAA05509Tue, 30 Dec 1997 06:48:05 -0500 (EST)
      • Alexander Taranov - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id GAA05594Tue, 30 Dec 1997 06:53:41 -0500 (EST) <=