mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
16 lines
414 B
Text
16 lines
414 B
Text
app [main!] { pf: platform "../../../../examples/cli/effects-platform/main.roc" }
|
|
|
|
import pf.Effect
|
|
|
|
main! : {} => {}
|
|
main! = \{} ->
|
|
friends = ["Lu", "Marce", "Joaquin", "Chloé", "Mati", "Pedro"]
|
|
printAll! friends
|
|
|
|
printAll! : List Str => {}
|
|
printAll! = \friends ->
|
|
when friends is
|
|
[] -> {}
|
|
[first, .. as remaining] ->
|
|
Effect.putLine! first
|
|
printAll! remaining
|