mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-23 00:39:35 +03:00
14 lines
284 B
Plaintext
14 lines
284 B
Plaintext
app "libhello"
|
|
packages { pf: "platform/main.roc" }
|
|
imports []
|
|
provides [main] to pf
|
|
|
|
main : U64 -> Str
|
|
main = \num ->
|
|
if num == 0 then
|
|
"I need a positive number here!"
|
|
else
|
|
str = Num.toStr num
|
|
|
|
"The number was \(str), OH YEAH!!! 🤘🤘"
|