Qurak
文档
价格
登录
Qurak
文档
函数
Catch
Catch
可用
Non-local exit — `Throw[val]` unwinds until the innermost `Catch`.
形式
Catch[expr]
Catch[expr, form]
Catch[expr, form, f]
验证过的示例
Catch[Throw[42]] → 42
Catch[Do[If[i == 3, Throw[i]], {i, 1, 5}]] → 3
在 Qurak 上运行
搜索参考
主题
Flow Control
- General
Language Overview
- Error & Exception Handling »
Looping Constructs
- Loop Termination
Procedural Programming
- Flow Control »
Robustness And Error Handling
- Low-Level Error Handling
Scoping Constructs
- Other Forms of Scoping
相关
Throw
Enclose
Check
CheckAbort
Reap
Confirm
Return
Abort
AbortProtect
Break
Continue
Interrupt
← CatalanNumber
CatchExceptions →
全部 6300 个函数
·
从 MCP 客户端使用