Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
let detectDivideZero (x : int) (y : int):int option =
|
||||
try
|
||||
Some(x / y)
|
||||
with
|
||||
| :? System.ArithmeticException -> None
|
||||
|
||||
|
||||
printfn "12 divided by 3 is %A" (detectDivideZero 12 3)
|
||||
printfn "1 divided by 0 is %A" (detectDivideZero 1 0)
|
||||
Loading…
Add table
Add a link
Reference in a new issue