main
commit
c5d60b9876
|
@ -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)
|
Loading…
Reference in New Issue