blob: b3ce426f96c4c9225d697342fb8d668d5f26d161 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/catch.html).*
# Circled Triangle Down (`⎊`)
## `𝔽⎊𝔾 𝕩`, `𝕨 𝔽⎊𝔾 𝕩`: Catch
Apply `𝔽` to the arguments.
If an error happens when `𝔽` is applied, cancel its execution, apply `𝔾` to the arguments and return its result.
Otherwise, return the result of `𝔽`.
∾⎊{"error occurred with argument: "∾•Fmt 𝕩} 1
∾⎊{"error occurred with argument: "∾•Fmt 𝕩} ⟨⟨1,2⟩, ⟨3,4⟩⟩
|