Throw
Aborts evaluation up to the nearest enclosing Catch, carrying a value.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
Throw✓Throw(value)Unwinds evaluation up to the nearest enclosing Catch, which returns .Throw(value, tag)Like , but only a matching exactly stops it — an untagged or non-matching lets it propagate further out.Typed signatures
| Type | Package | Applies |
|---|---|---|
(any, any?) -> any | combinatorics | always |
Details
- Only exact tag equality is matched, not Wolfram's fuller pattern-matching form.
- A that reaches no matching propagates out of the whole evaluation.
Examples
Scope #
About
| Examples | 11 |
|---|---|
| Checked against | Wolfram Language 11 agree |
| Crosswalk | Wolfram Language |
See also: Catch