diff options
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -34636,6 +34636,14 @@ and are equivalent to .codn "(iter-begin X)" . +Search trees are iterable. Iteration entails an in-order visits of the elements +of a tree. A tree iterator created by +.code tree-begin +is also iterable. It is unspecified whether iteration over a +.code tree-iter +object modifies that object to perform the traversal, or whether it uses a copy +of the iterator. + If .code seq is not an iterable object, an error exception is thrown. @@ -51866,6 +51874,19 @@ function to the returned .code tree-iter object. +A +.code tree-iter +object is iterable. + +.TP* Example: + +.verb + (collect-each ((el (tree-begin #T(() 1 2 3 4 5) + 2 5))) + (* 10 el)) + --> (20 30 40) +.brev + .coNP Function @ tree-reset .synb .mets (tree-reset < iter < tree >> [ low-key <> [ high-key ]]) |