Skip to content

The Incan Book (Basics)

This is a linear tutorial track intended for new readers.

Goals:

  • learn the core language fundamentals with runnable examples
  • keep pages short and sequential (next/prev)
  • avoid mixing “how-to” and “reference” into the main learning flow

Chapters

  1. Hello world
  2. Values, variables, and types
  3. Functions
  4. Control flow
  5. Modules and imports
  6. Errors (Result/Option and ?)
  7. Strings and formatting
  8. Collections and iteration
  9. Enums and better match
  10. Models vs classes
  11. Traits and derives
  12. Newtypes (stronger types)
  13. Unit tests

Notes