xanadu - btree
This commit is contained in:
		
							parent
							
								
									280a06663c
								
							
						
					
					
						commit
						6540a3bcff
					
				| 
						 | 
				
			
			@ -43,12 +43,14 @@
 | 
			
		|||
 | 
			
		||||
    (define (set-left-with-index! i value)
 | 
			
		||||
      (cond ((not left)
 | 
			
		||||
             (display "not left"))
 | 
			
		||||
             (display "not left") 
 | 
			
		||||
             #f)
 | 
			
		||||
            (else (vector-set! left i value))))
 | 
			
		||||
 | 
			
		||||
    (define (set-right-with-index! i value)
 | 
			
		||||
      (cond ((not right)
 | 
			
		||||
             (display "not right"))
 | 
			
		||||
             (display "not right")
 | 
			
		||||
             #t)
 | 
			
		||||
            (else (vector-set! right i value))))
 | 
			
		||||
 | 
			
		||||
    (define (get-left)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue