mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 15:03:46 +00:00
16 lines
299 B
Text
16 lines
299 B
Text
app "test" provides [main] to "./platform"
|
|
|
|
main =
|
|
x = Bool.true
|
|
y = Bool.false
|
|
|
|
a = "foo"
|
|
b = "bar"
|
|
|
|
foo = \{} -> if x then a else bar {}
|
|
#^^^{-1} {} -[[foo(5) Bool Bool Str Str]]-> Str
|
|
|
|
bar = \{} -> if y then b else foo {}
|
|
#^^^{-1} {} -[[bar(6) Bool Bool Str Str]]-> Str
|
|
|
|
bar {}
|