diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-10-16 00:05:08 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-10-16 00:05:08 -0700 |
commit | 337ffc1e586d48b5fe6a334a6fd61587961fe261 (patch) | |
tree | 1bc2179b76884142de6d00a6361fe6029ba6b99f /txr.1 | |
parent | c59462de5168b4050ff8517e8215a7692949e85b (diff) | |
download | txr-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.1 | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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 ]]]]) |