Mojo module
prelude
Standard library prelude: fundamental types, traits, and operations auto-imported.
This package's contents form the basic vocabulary of Mojo programming that every developer uses. It is implicitly imported to every Mojo program.
The prelude package contains the core types, traits, and functions that are
automatically imported into every Mojo program. It provides the foundational
building blocks of the language including basic types (Int, String, Bool),
essential traits (Copyable, Movable, Equatable), memory primitives (Pointer,
Span), and common operations (print, len, range). This package defines the
default namespace that makes Mojo code immediately usable without explicit
imports.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!