Standard Library
The Nolang standard library (src/std/) contains 60+ modules, covering formatting, math, strings, data structures, encoding/decoding, encryption, compression, file operations, I/O abstractions, and more.
Usage: # std/xxx (core modules require no import).
The legacy
use std/xxxsyntax still works but is deprecated; the new# std/xxxsyntax is recommended.
Note: All code examples in this document follow the "one statement per line" rule—using semicolons
;or commas,to put multiple statements on one line is forbidden. For example,out = from-i64(v), out = from-u64(v)is incorrect and should be split across multiple lines.