Reference

std/io

The three streams every process is started with. They are ordinary Source and Sink values (docs/design/STREAMS.md), so everything that reads a file reads standard input, and everything that writes a file writes to the screen:

const total = lines().count().await()?
standardOutput().addLine("{total} lines").await()?

print/printError of the prelude and readLine() here stay as the short form for the common case: a program that prints a line does not want to think about a stream.

Modules

Everything