Mathematica 9 is now available

ReplaceListCatch (modified)

Throw

FilledSmallSquareThrow[value] stops evaluation and returns value as the value of the nearest enclosing Catch.

FilledSmallSquareThrow[value, tag] is caught only by Catch[expr, form] where form is a pattern that matches tag.

FilledSmallSquare You can use Throw and Catch to exit functions such as Nest, Fold, FixedPoint and Scan.

FilledSmallSquaretag can be any expression.

FilledSmallSquaretag in Throw[value, tag] is re-evaluated every time it is compared to form in Catch[expr, form].

FilledSmallSquare An error is generated and an unevaluated Throw is returned if there is no appropriate enclosing Catch to catch the Throw.

FilledSmallSquare See The Mathematica Book: Section 2.5.9.

FilledSmallSquare See also: Return, Goto, Interrupt, Abort.

Further Examples

ReplaceListCatch (modified)



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.