- You can use Throw and Catch to exit functions such as Nest, Fold, FixedPoint, and Scan.
- tag can be any expression.
- tag in Throw[value,tag] is reevaluated every time it is compared to form in Catch[expr,form].
- An error is generated and an unevaluated Throw is returned if there is no appropriate enclosing Catch to catch the Throw.
Examplesopen allclose all
Basic Examples (3)
Generalizations & Extensions (3)
Properties & Relations (1)
Possible Issues (2)
Introduced in 1988
(1.0)| Updated in 1996