Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

Lazy

Guides

  • Guide
  • MainGuide

Symbols

  • LazyDirectoryTree
  • LazyExpression
  • LazyLength
  • LazyList
  • Lazy
  • LazySplits
  • LazyTraverse
  • LazyTreeEdges
  • LazyTree
  • LazyValueArray
  • LazyValue
  • MultiwayNest
Wolfram`Lazy`
LazyTraverse
​
LazyTraverse[lazy]
traverse a lazy object until there is no longer new nodes dicovered.
​
​
LazyTraverse[lazy,patt]
traverse a lazy object and stop when a node is found that matches a pattern.
​
​
LazyTraverse[…,prop]
return a property of a traversal computation object instead.
​
Details and Options

Examples  
(1)
Basic Examples  
(1)
In[1]:=
compute=
LazyTraverse
[LazyNestTree[{2#,3#,5#}&,1],10,"Computation","TraversalOrder""BreadthFirst"]
Out[1]=
LazyComputation
…
Method: LazyTraverse

In[2]:=
compute["Lazy"]
Out[2]=
LazyTree
​

In[3]:=
compute["Visited"]
Out[3]=
{1,2,3,5,4,6,10}
In[4]:=
compute["Lazy"]//LazyTreeSubtree
Out[4]=
In[5]:=
compute=compute["Continue"]
Out[5]=
LazyComputation
…
Method: LazyTraverse

In[6]:=
compute["Visited"]
Out[6]=
{1,2,3,5,4,6,10,9,15}
In[7]:=
compute["Lazy"]//LazyTreeSubtree
Out[7]=
In[8]:=
compute["Paths"]
Out[8]=
{{1,3},{3,1}}
In[9]:=
LazyTreePath[compute["Lazy"],compute["Paths"]]
Out[9]=
{{1,2,10},{1,5,10}}
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com