Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
|
|
@ -1,7 +1,7 @@
|
|||
throw "not a math exception"
|
||||
|
||||
catch[.e] {
|
||||
if .e'cat == "math" {
|
||||
catch[e] {
|
||||
if e'cat == "math" {
|
||||
# change result...
|
||||
} else {
|
||||
# rethrow the exception
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
val .safediv = fn(.x, .y) { .x / .y ; catch : 0 }
|
||||
.safediv(7, 7) # 1
|
||||
.safediv(7, 0) # 0
|
||||
val safediv = fn(x, y) { x / y ; catch : 0 }
|
||||
safediv(7, 7) # 1
|
||||
safediv(7, 0) # 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue