2wenty1ne 2024-11-14 21:55:47 +01:00
commit c5d60b9876
1 changed files with 15 additions and 0 deletions

15
main.roc 100644
View File

@ -0,0 +1,15 @@
app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.16.0/O00IPk-Krg_diNS2dVWlI0ZQP794Vctxzv0ha96mK0E.tar.br" }
import pf.Stdout
addAndStringify = \num1, num2 ->
sum = num1 + num2
if sum == 0 then
""
else
Num.toStr sum
main =
Stdout.line! "I'm a Roc application!"
Stdout.line! (addAndStringify 2 3)