Abstract
Sycamore is a purely functional data structure library in Common Lisp. It include fast, weight-balanced binary trees, set and map (dictionary) interfaces, pairing heaps, and amortized queues.
SYCAMORE is available under the 3-Clause BSD license.Download Source:
git clone https://github.com/ndantam/sycamore
amortized-dequeue
amortized-enqueue
amortized-queue
amortized-queue
amortized-queue-empty-p
amortized-queue-list
amortized-queue-push
do-tree-set
fold-tree-set
make-amortized-queue
make-tree-map
make-tree-set
map-tree-map
map-tree-set
or-compare
tree-map-count
tree-map-find
tree-map-insert
tree-map-remove
tree-set
tree-set
tree-set-compare
tree-set-count
tree-set-difference
tree-set-equal-p
tree-set-find
tree-set-insert
tree-set-intersection
tree-set-intersection-difference
tree-set-list
tree-set-member-p
tree-set-p
tree-set-position
tree-set-ref
tree-set-remove
tree-set-remove-max
tree-set-remove-min
tree-set-remove-position
tree-set-subset-p
tree-set-union
[Function]
amortized-dequeue queue => result
Remove first element of QUEUE. RETURNS: (VALUES new-queue element)
[Function]
amortized-enqueue queue element => result
Add ELEMENT to QUEUE. RETURNS: new-queue
[Standard class]
amortized-queue
[Function]
amortized-queue &rest args => result
Create an amortized queue of ARGS.
[Function]
amortized-queue-empty-p queue => result
Is the queue empty?
[Function]
amortized-queue-list queue => result
Return an inorder list of elements in QUEUE.
[Function]
amortized-queue-push queue element => result
Add ELEMENT to the front of QUEUE.
[Macro]
do-tree-set (var set &optional result) declaration* statement* => result
[Function]
fold-tree-set function initial-value set => result
Fold FUNCTION over every element of SET.
[Function]
make-amortized-queue => result
Make a new queue.
[Function]
make-tree-map compare => result
Create a new tree-map.
[Function]
make-tree-set compare => result
Create a new tree-set.
[Function]
map-tree-map order result-type function tree-map => result
Apply FUNCTION to all elements in TREE-MAP. ORDER: (or :inorder :preorder :postorder). RESULT-TYPE: (or nil 'list). FUNCTION: (lambda (key value)).
[Function]
map-tree-set result-type function set => result
Apply FUNCTION to every element of SET.
[Macro]
or-compare &rest comparisons => result
Short-circuit evaluatation of arguments, returning the first one that is nonzero.
[Function]
tree-map-count map => result
Number of elements in MAP.
[Function]
tree-map-find tree-map key &optional default => result
Find value indexed by KEY in TREE-MAP.
[Function]
tree-map-insert tree-map key value => result
Insert KEY=>VALUE into TREE-MAP, returning the new tree-map.
[Function]
tree-map-remove tree-map key => result
Insert KEY from TREE-MAP, returning the new tree-map.
[Standard class]
tree-set
[Function]
tree-set compare &rest args => result
Create a new tree-set containing all items in ARGS.
[Function]
tree-set-compare tree-1 tree-2 => result
Order relation on sets.
[Function]
tree-set-count set => result
Number of elements in SET.
[Function]
tree-set-difference set-1 set-2 => result
Difference of SET-1 and SET-2.
[Function]
tree-set-equal-p set-1 set-2 => result
Do SET-1 and SET-2 contain the same elements?
[Function]
tree-set-find set item => result
Find ITEM in SET
[Function]
tree-set-insert set item => result
Insert ITEM into SET.
[Function]
tree-set-intersection set-1 set-2 => result
Intersection of SET-1 and SET-2.
[Function]
tree-set-intersection-difference tree-1 tree-2 => result
Simultanously compute intersection and difference.
[Function]
tree-set-list set => result
Return list of elements in `SET' in comparison order.
[Function]
tree-set-member-p set item => result
Is ITEM a member of SET?
[Function]
tree-set-p object => result
[Function]
tree-set-position set value => result
Return the position of `VALUE' in `SET' or NIL.
[Function]
tree-set-ref set subscript => result
Return the element of `SET' at position `SUBSCRIPT'.
[Function]
tree-set-remove set item => result
Remove ITEM from SET.
[Function]
tree-set-remove-max set => result
Remove maximum element of SET.
[Function]
tree-set-remove-min set => result
Remove minimum element of SET.
[Function]
tree-set-remove-position set i => result
Remove element of SET and position I.
[Function]
tree-set-subset-p set-1 set-2 => result
Is SET-1 as subset of SET-2?
[Function]
tree-set-union set-1 set-2 => result
Union of SET-1 and SET-2.
This documentation was prepared with DOCUMENTATION-TEMPLATE.