summaryrefslogtreecommitdiffstats
path: root/tree.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-05-09 17:45:55 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-05-09 17:45:55 -0700
commit96715da165569922e1efa584eb0ce4f4d272c46d (patch)
tree08e2b19c2c2a9637d2f70785c5a6a3a47de365d3 /tree.h
parent8a7a4963a6cdf0a0d8b7145aefb4a40f5f26c673 (diff)
downloadtxr-96715da165569922e1efa584eb0ce4f4d272c46d.tar.gz
txr-96715da165569922e1efa584eb0ce4f4d272c46d.tar.bz2
txr-96715da165569922e1efa584eb0ce4f4d272c46d.zip
tree: new tree-peek function.
* tree.c (tn_peek_next): New static function. (tree_peek): New function. (tree_init): Register tree-peek intrinsic. * tree.h (tree_peek): Declared. * txr.1: Documented. * tests/010/tree.c: Work tree-peek into existing test case. * share/txr/stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'tree.h')
-rw-r--r--tree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tree.h b/tree.h
index d1b726c2..0ee9cb0a 100644
--- a/tree.h
+++ b/tree.h
@@ -48,5 +48,6 @@ val tree_begin_at(val tree, val lowkey);
val tree_reset(val iter, val tree);
val tree_reset_at(val iter, val tree, val lowkey);
val tree_next(val iter);
+val tree_peek(val iter);
val tree_clear(val tree);
void tree_init(void);