[funds-cvs] r203 - trunk/funds/src/heap

20 Aug
2007
20 Aug
'07
5:57 p.m.
Author: abaine Date: Mon Aug 20 13:57:41 2007 New Revision: 203 Modified: trunk/funds/src/heap/heap.lisp Log: Added all-important stitch-tree specializing on heap. Modified: trunk/funds/src/heap/heap.lisp ============================================================================== --- trunk/funds/src/heap/heap.lisp (original) +++ trunk/funds/src/heap/heap.lisp Mon Aug 20 13:57:41 2007 @@ -36,3 +36,10 @@ (defmethod tree-weight ((tree heap)) (heap-weight tree)) + +(defmethod stitch-tree ((tree heap) + &key (key (bt-key tree)) (value (bt-value tree)) left right) + (make-heap :priority key + :value value + :left left + :right right))
6527
Age (days ago)
6527
Last active (days ago)
0 comments
1 participants
participants (1)
-
abaine@common-lisp.net