September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# Using scoped function fibI inside fib
|
||||
proc fib(x): int =
|
||||
proc fibI(n): int =
|
||||
proc fib(x: int): int =
|
||||
proc fibI(n: int): int =
|
||||
if n < 2: n else: fibI(n-2) + fibI(n-1)
|
||||
if x < 0:
|
||||
raise newException(ValueError, "Invalid argument")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue