aboutsummaryrefslogtreecommitdiffstats
path: root/mcgoron.weight-balanced-trees.sld
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2025-01-16 18:56:53 -0500
committerGravatar Peter McGoron 2025-01-16 18:56:53 -0500
commit59b07ed6184c1c19b36a5fad42d09151c17dc89a (patch)
treefd4385fb3e0b20e8a1acce4d5251ac89d1527288 /mcgoron.weight-balanced-trees.sld
succesfully test join
Diffstat (limited to 'mcgoron.weight-balanced-trees.sld')
-rw-r--r--mcgoron.weight-balanced-trees.sld32
1 files changed, 32 insertions, 0 deletions
diff --git a/mcgoron.weight-balanced-trees.sld b/mcgoron.weight-balanced-trees.sld
new file mode 100644
index 0000000..2cdee36
--- /dev/null
+++ b/mcgoron.weight-balanced-trees.sld
@@ -0,0 +1,32 @@
+#| Copyright 2024 Peter McGoron
+ |
+ | Licensed under the Apache License, Version 2.0 (the "License");
+ | you may not use this file except in compliance with the License.
+ | You may obtain a copy of the License at
+ |
+ | http://www.apache.org/licenses/LICENSE-2.0
+ |
+ | Unless required by applicable law or agreed to in writing, software
+ | distributed under the License is distributed on an "AS IS" BASIS,
+ | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ | See the License for the specific language governing permissions and
+ | limitations under the License.
+ |#
+
+(define-library (mcgoron weight-balanced-trees)
+ (import (scheme base))
+ (cond-expand
+ ;; Handle type declarations
+ (chicken (import (chicken type)))
+ (else (begin
+ (define-syntax :
+ (syntax-rules ()
+ ((: dummy ...) (begin)))))))
+ (export wb-tree-node? non-null-wb-tree-node?
+ get-data get-left get-right get-size
+ balanced?
+ in-order-vector->node
+ node->in-order-list
+ join)
+ (include "mcgoron.weight-balanced-trees.scm"))
+