# Scheme-rbtrees **Repository Path**: alpbrook/Scheme-rbtrees ## Basic Information - **Project Name**: Scheme-rbtrees - **Description**: https://github.com/higepon/Scheme-rbtrees.git - **Primary Language**: Scheme - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-05-05 - **Last Updated**: 2021-05-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # What is this? Red-black tree (http://en.wikipedia.org/wiki/Red-black_tree) implmentation for R6RS. The implementation is based on "Introduction to Algorithms" by Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein. ## Using Red-black tree Put rbtree.ss to your LOADPATH. (import (rnrs) (rbtree)) (let ([rb (make-rbtree string=? string 'not-found (rbtree-set! rb "abc" 'val1) (rbtree-get rb "abc") ;; => 'val1 (rbtree-delete! rb "abc") (rbtree-get rb "abc" 'not-found)) ;; => 'not-found ## API - (make-rbtree key=? key ## License New BSD License