|
Sow
Sow[e] specifies that e should be collected by the nearest enclosing Reap.
Sow[e, tag] specifies that e should be collected by the nearest enclosing Reap whose pattern matches tag.
Sow[e,  , , ... ] specifies that e should be collected once for each pattern that matches a .
Sow[e, ... ] returns e.
By having several identical , a single expression can be made to appear multiple times in a list returned by Reap.
Sow[e] is equivalent to Sow[e, None].
Sow[e,  tag ] sows an expression with tag tag .
See Section 2.4.1 and Section 2.6.10.
See also: Reap, Throw, AppendTo, EvaluationMonitor, StepMonitor, Scan.
New in Version 5.0.
Further Examples
|