summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-10-16 00:05:08 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-10-16 00:05:08 -0700
commit337ffc1e586d48b5fe6a334a6fd61587961fe261 (patch)
tree1bc2179b76884142de6d00a6361fe6029ba6b99f /txr.1
parentc59462de5168b4050ff8517e8215a7692949e85b (diff)
downloadtxr-337ffc1e586d48b5fe6a334a6fd61587961fe261.tar.gz
txr-337ffc1e586d48b5fe6a334a6fd61587961fe261.tar.bz2
txr-337ffc1e586d48b5fe6a334a6fd61587961fe261.zip
tree: introduce copy-tnode.
* lib.c (copy): Handle TNOD casee via copy_tnode. * tree.c (copy_tnode): New function. (tree_init): copy-tnode intrinsic registered. * tree.h (copy_tnode): Declared. * txr.1: copy function documented as handling tnode type via copy-tnode. That function is documented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.119
1 files changed, 19 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index ad97ed52..5bc31393 100644
--- a/txr.1
+++ b/txr.1
@@ -28073,6 +28073,8 @@ the type of the argument, as follows:
.meti (copy-carray << object )
.coIP random-state
.meti (make-random-state << object )
+.coIP tnode
+.meti (copy-tnode << object )
.RE
.IP
@@ -45230,6 +45232,23 @@ functions retrieve the corresponding fields of the
object, which must be of type
.codn tnode .
+.coNP Function @ copy-tnode
+.synb
+.mets (copy-tnode << node )
+.syne
+.desc
+The
+.code copy-tnode
+function creates a new
+.code tnode
+objects, whose
+.codn key ,
+.code left
+and
+.code right
+fields are copied from
+.codn node .
+
.coNP Function @ tree
.synb
.mets (tree >> [ elems >> [ keyfun >> [ lessfun <> [ equalfun ]]]])