commit c5d60b9876ec76658dc872a6df0a77b230984c40 Author: 2wenty1ne Date: Thu Nov 14 21:55:47 2024 +0100 c diff --git a/main.roc b/main.roc new file mode 100644 index 0000000..b264780 --- /dev/null +++ b/main.roc @@ -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)