This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Documentation / Mathematica / Built-in Functions / Programming / Functional Programming /

Further Examples: Scan

Scan evaluates the result of applying a function to each element but does not construct a new expression.

In[1]:=

With the third argument set to Infinity, Scan visits the parts of an expression in a depth-first walk, with the leaves visited first.

In[2]:=