Re: (append)

Subject: Re: (append)
From: Graydon Hoare <graydon@xxxxxxxxxxxxx>
Date: Thu, 18 Jun 1998 16:03:49 -0400 (EDT)
On Thu, 18 Jun 1998, Chris Maden wrote:

you're doing this:

(append (something-that-makes-a-list) some-number)

some-number is not a list, it's a pointer to a cell holding a number. A
list is a pointer to a cell holding a pair. You have to construct the pair
and put you number in the car field. You want to do:

(format-number-list 
 (append 
  (element-number-list (list "appendix"
			     "sect1")
		       (current-node))
  (list (+ (element-number (ancestor "sect2"))
        refentrys)))
 '("A"   "1"   "1") ".") 

-graydon




 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • (append)
    • Chris Maden - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id PAA07224Thu, 18 Jun 1998 15:39:42 -0400 (EDT)
      • Graydon Hoare - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id QAA08271Thu, 18 Jun 1998 16:10:20 -0400 (EDT) <=
      • <Possible follow-ups>
      • Reynolds, Gregg - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id PAA07742Thu, 18 Jun 1998 15:56:40 -0400 (EDT)
        • Chris Maden - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id TAA10912Thu, 18 Jun 1998 19:57:49 -0400 (EDT)