main
parent
c5d60b9876
commit
7cb5840ea7
7
main.roc
7
main.roc
|
@ -10,6 +10,13 @@ addAndStringify = \num1, num2 ->
|
||||||
else
|
else
|
||||||
Num.toStr sum
|
Num.toStr sum
|
||||||
|
|
||||||
|
calcFac = \number ->
|
||||||
|
if number == 0 then
|
||||||
|
1
|
||||||
|
else
|
||||||
|
(number * (calcFac (number - 1)))
|
||||||
|
|
||||||
main =
|
main =
|
||||||
Stdout.line! "I'm a Roc application!"
|
Stdout.line! "I'm a Roc application!"
|
||||||
Stdout.line! (addAndStringify 2 3)
|
Stdout.line! (addAndStringify 2 3)
|
||||||
|
Stdout.line! (Num.toStr (calcFac 10))
|
||||||
|
|
Loading…
Reference in New Issue