mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-11 23:58:00 +00:00
12 lines
420 B
Text
12 lines
420 B
Text
app [main] { pf: platform "https://github.com/roc-lang/basic-cli/releases/download/0.15.0/SlwdbJ-3GR7uBWQo6zlmYWNYOxnvo8r6YABXD-45UOw.tar.br" }
|
|
|
|
import pf.Stdout
|
|
import "test-file.txt" as testFile : _ # the _ is optional
|
|
|
|
main =
|
|
# Due to the functions we apply on testFile, it will be inferred as a List U8.
|
|
testFile
|
|
|> List.map Num.toU64
|
|
|> List.sum
|
|
|> Num.toStr
|
|
|> Stdout.line!
|