mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-07 05:38:01 +00:00
16 lines
409 B
Text
16 lines
409 B
Text
app [main!] { pf: platform "../test-platform-effects-zig/main.roc" }
|
|
|
|
import pf.Effect
|
|
|
|
main! : {} => {}
|
|
main! = \{} ->
|
|
friends = ["Lu", "Marce", "Joaquin", "Chloé", "Mati", "Pedro"]
|
|
print_all!(friends)
|
|
|
|
print_all! : List Str => {}
|
|
print_all! = \friends ->
|
|
when friends is
|
|
[] -> {}
|
|
[first, .. as remaining] ->
|
|
Effect.put_line!(first)
|
|
print_all!(remaining)
|