Added types
This commit is contained in:
parent
60a920734d
commit
188b85fdce
33 changed files with 113 additions and 92 deletions
|
@ -4,7 +4,7 @@ main() {
|
|||
log.number(factorial(5))
|
||||
}
|
||||
|
||||
factorial(x) {
|
||||
factorial(x Int) -> Int {
|
||||
if x <= 1 {
|
||||
return 1
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue