Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

moved map-tree definition to a more sensible place

  • Loading branch information...
commit fd54f675f72ecfe5b4b8d00ac4872f7158be461f 1 parent dda7b45
@sake authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/interface.lisp
View
14 src/interface.lisp
@@ -39,13 +39,6 @@ t if the first argument is less than the second and return nil otherwise."
(:documentation "Return the number of elements in the tree."))
-(defgeneric map-tree (function tree)
- (:documentation "Apply function to all elements of the tree in sorted order.
-
-Exactly like hash maps, the behaviour is undefined when the tree is altered while
-the function runs. nil is always returned."))
-
-
(defgeneric clr-tree (tree)
(:documentation "Remove all elements from the tree.
The empty tree is returned, which is the same object as supplied."))
@@ -84,6 +77,13 @@ node corresponding to index is included in the second tree."))
(:documentation "Merge the second tree into the first one The second tree is left untouched."))
+(defgeneric map-tree (function tree)
+ (:documentation "Apply function to all elements of the tree in sorted order.
+
+Exactly like hash maps, the behaviour is undefined when the tree is altered while
+the function runs. nil is always returned."))
+
+
(defmacro with-treemap-iterator ((iterator treemap) &body body)
"Macro to establish a tree iterator similar to with-hash-table-iterator.
Please sign in to comment.
Something went wrong with that request. Please try again.