core

The core package declares the types and control flow almost every Zane program uses, written in Zane over the compiler’s intrinsics.

Import it with import core$;, which makes its names usable without a prefix.

  1. Numbers: Int, Float, I32, F32, U8, their operators and conversions
  2. Text: String and its bytes
  3. Containers: List, Array, ListRef, ArrayRef
  4. Control flow: if, elif, else, guard, do, to, workers and Duration
  5. Console and runtime: Console, Runtime, Unit and Bool
  6. Worker pools: WorkerPool and EventSource