3 lines
95 B
Text
3 lines
95 B
Text
val safediv = fn(x number, y number) { x / y ; catch : 0 }
|
|
safediv(7, 7) # 1
|
|
safediv(7, 0) # 0
|