September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -0,0 +1,7 @@
|
|||
func div_check(a, b){
|
||||
var result = a/b
|
||||
result.abs == Inf ? nil : result
|
||||
}
|
||||
|
||||
say div_check(10, 2) # 5
|
||||
say div_check(1, 0) # nil (detected)
|
||||
Loading…
Add table
Add a link
Reference in a new issue