RosettaCodeData/Task/Exceptions/Langur/exceptions-3.langur

4 lines
95 B
Text
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
val safediv = fn(x number, y number) { x / y ; catch : 0 }
2024-07-13 15:19:22 -07:00
safediv(7, 7) # 1
safediv(7, 0) # 0