Victor Hans-Georg Waitz 2024-11-14 22:17:05 +01:00
parent c5d60b9876
commit 7cb5840ea7
1 changed files with 7 additions and 0 deletions

View File

@ -10,6 +10,13 @@ addAndStringify = \num1, num2 ->
else
Num.toStr sum
calcFac = \number ->
if number == 0 then
1
else
(number * (calcFac (number - 1)))
main =
Stdout.line! "I'm a Roc application!"
Stdout.line! (addAndStringify 2 3)
Stdout.line! (Num.toStr (calcFac 10))