mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00

TotallyNotJson.roc now lives on the farm in virtual-dom-wip as Json.roc. Any reference in stdlib or builtins has been removed, as well as the last places it was used (in python/ruby-interop examples).
10 lines
235 B
Text
10 lines
235 B
Text
app [main] { pf: platform "platform/main.roc" }
|
|
|
|
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!!! 🤘🤘"
|