diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-05-09 12:08:55 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-05-09 12:08:55 -0700 |
commit | 8a7a4963a6cdf0a0d8b7145aefb4a40f5f26c673 (patch) | |
tree | d624f4fede1507921bf4cd856a44ff012ab80c11 /txr.1 | |
parent | 4c6c110dfc3f10777fb7c9334c054d3407358af0 (diff) | |
download | txr-8a7a4963a6cdf0a0d8b7145aefb4a40f5f26c673.tar.gz txr-8a7a4963a6cdf0a0d8b7145aefb4a40f5f26c673.tar.bz2 txr-8a7a4963a6cdf0a0d8b7145aefb4a40f5f26c673.zip |
tree: new make_similar_tree unction.
* tree.c (make_similar_tree): New function.
(tree_init): Register make-similar-tree intrinsic
* tree.h (make_similar_tree): Declared.
* tests/010/tree.tl: New tests.
* txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -51774,6 +51774,23 @@ and contains the same elements. The nodes held inside the new tree are freshly allocated, but their key objects are shared with the original tree. +.coNP Function @ make-similar-tree +.synb +.mets (make-similar-tree << tree ) +.syne +.desc +The +.code copy-search-tree +returns a new, empty search tree object. + +The +.meta tree +argument must be an object of type +.codn tree . + +The returned object has the same key abstraction functions as +.metn tree . + .coNP Functions @ tree-begin and @ tree-begin-at .synb .mets (tree-begin < tree ) |