§10 Runtime
Output:
print(value) ![io]— write to stdoutprint.err(value) ![io]— write to stderrprint.info/warn/error— deprecated; useprint()andprint.err()
Filesystem (require ![io]):
fs.read(path), fs.write(path, content), fs.appendFile(path, content),
fs.exists(path), fs.writeLines(path, lines)
HTTP (require ![net]):
http.get(url), http.post(url, body)
Logging (via sfn/log capsule, require ![io]):
log.info(msg), log.warn(msg), log.error(msg), log.debug(msg)
log.warn and log.error write to stderr.
String utilities (from runtime/prelude):
substring(text, start, end), find_char(text, char, start?),
grapheme_count(text), grapheme_at(text, index), char_code(char)
See Standard Library for full signatures.