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 / New in Version 5.0 / Programming /

Sow

FilledSmallSquare Sow[e] specifies that e should be collected by the nearest enclosing Reap.

FilledSmallSquare Sow[e, tag] specifies that e should be collected by the nearest enclosing Reap whose pattern matches tag.

FilledSmallSquare Sow[e, , , ... ] specifies that e should be collected once for each pattern that matches a .

FilledSmallSquare Sow[e, ... ] returns e.

FilledSmallSquare By having several identical , a single expression can be made to appear multiple times in a list returned by Reap.

FilledSmallSquare Sow[e] is equivalent to Sow[e, None].

FilledSmallSquare Sow[e, tag] sows an expression with tag tag.

FilledSmallSquare See Section 2.4.1 and Section 2.6.10.

FilledSmallSquare See also: Reap, Throw, AppendTo, EvaluationMonitor, StepMonitor, Scan.

FilledSmallSquare New in Version 5.0.

Further Examples