Re: searching for closest previous element

Subject: Re: searching for closest previous element
From: Norman Walsh <norm@xxxxxxxxxxxxx>
Date: Wed, 18 Mar 1998 12:38:27 -0500
| 
| "Reverse" takes a lot of time with many elements.  But there seems no 
| way around it: there's no quick way to access the last node in a node 
| list, so that I can walk the tree list backwards.

From dblib.dsl:

(define (node-list-last nl)
  ;; REFENTRY
  ;; PURP Implements node-list-last as per ISO/IEC 10179:1996
  ;; DESC
  ;; Implements 'node-list-last' as per ISO/IEC 10179:1996
  ;; /DESC
  ;; AUTHOR From ISO/IEC 10179:1996
  ;; /REFENTRY
  (node-list-ref nl
		 (- (node-list-length nl) 1)))


--norm


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


Current Thread
  • searching for closest previous element
    • stephenng - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id MAA29235Wed, 18 Mar 1998 12:00:36 -0500 (EST)
      • Norman Walsh - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id MAA00392Wed, 18 Mar 1998 12:40:40 -0500 (EST) <=
      • Paul Prescod - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id KAA20931Thu, 19 Mar 1998 10:32:32 -0500 (EST)
      • <Possible follow-ups>
      • stephenng - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id NAA01051Wed, 18 Mar 1998 13:28:07 -0500 (EST)
        • stephenng - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id OAA17663Thu, 26 Mar 1998 14:25:03 -0500 (EST)
      • Reynolds, Gregg - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id SAA04606Wed, 18 Mar 1998 18:19:21 -0500 (EST)