mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
16 lines
258 B
Text
16 lines
258 B
Text
app [main!] { pf: platform "./platform/main.roc" }
|
|
|
|
import pf.Stdout
|
|
import pf.Stderr
|
|
|
|
str : Str -> Str
|
|
str = |s| s
|
|
|
|
main! = || {
|
|
x = List.get([], 0)
|
|
if Try.is_ok(x) {
|
|
Stdout.line!("is ok")
|
|
} else {
|
|
Stdout.line!("is err")
|
|
}
|
|
}
|