Tutorial
The Novum tutorial is organized around the way you actually write programs: bind values, define functions, control execution, build collections, model data, and then use iterator pipelines to compose transformations.
Recommended path
- Variables and expressions
- Functions and lambdas
- Control flow
- Collections and indexing
- Structs and classes
- Modules, enums, and pattern matching
- Iterators and pipelines
- Putting it together
The central idea
Novum favors small expressions that can be combined. The language becomes particularly useful when ordinary values and data-oriented objects are fed into the same iterator pipeline:
let answer =
[3, 8, 2, 9, 4, 10]
.filter(|x| x >= 4)
.map(|x| x * x)
.take(3)
.collect()
print(answer)
The rest of the tutorial explains each part of this style in isolation before combining them.