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.

  1. Variables and expressions
  2. Functions and lambdas
  3. Control flow
  4. Collections and indexing
  5. Structs and classes
  6. Modules, enums, and pattern matching
  7. Iterators and pipelines
  8. 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.


Table of contents