Subject: Re: Problems with attributes. From: Brandon Ibach <bibach@xxxxxxxxxxxxxx> Date: Fri, 22 Oct 1999 03:09:46 -0500 |
Quoting Reyes <reyes.garcia@xxxxxxxxxx>: > The error is: > > Jade:c:\StarDsssl\Renk-Jade\Little.dsl:53:38:E: > reference to undefined variable "node-list-reduce" > > > This looks good, but it won't eliminate all duplicates, as it only > >compares the node-to-be-added to the first node in the result list. > >If you can figure out what's wrong with your node-list-contains?, that > >would be superior. On that note, Jade 1.3 implements *all* of the > >node-list operations natively. > > > I know it, but I don't have another solution. If I can solve the > problem with "node-list-reduce" this is better, but I don't know why. > Well, as the error message says, "node-list-reduce" is undefined. Before 1.3, [Open]Jade didn't implement a lot of the higher-level node-list functions from the spec. So, you can either get OpenJade 1.3, or put in a definition for node-list-reduce, such as: (define (node-list-reduce nl p o) (if (node-list-empty? nl) o (node-list-reduce (node-list-rest nl) p (p o (node-list-first nl))))) -Brandon :) DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Problems with attributes., Reyes | Thread | Re: Problems with attributes., Reyes |
RE: Hopefully simple -- include a q, DPawson | Date | Re: Problems with attributes., Reyes |
Month |