From c5d60b9876ec76658dc872a6df0a77b230984c40 Mon Sep 17 00:00:00 2001 From: 2wenty1ne Date: Thu, 14 Nov 2024 21:55:47 +0100 Subject: [PATCH] c --- main.roc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 main.roc 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)