mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 03:42:17 +00:00
15 lines
462 B
Text
15 lines
462 B
Text
app "ingested-file-bytes"
|
|
packages { pf: "https://github.com/roc-lang/basic-cli/releases/download/0.7.1/Icc3xJoIixF3hCcfXrDwLCu4wQHtNdPyoJkEbkgIElA.tar.br" }
|
|
imports [
|
|
pf.Stdout,
|
|
"ingested-file.roc" as ownCode : _, # A type hole can also be used here.
|
|
]
|
|
provides [main] to pf
|
|
|
|
main =
|
|
# Due to how ownCode is used, it will be a List U8.
|
|
ownCode
|
|
|> List.map Num.toNat
|
|
|> List.sum
|
|
|> Num.toStr
|
|
|> Stdout.line
|