Version: 1.1.0
mojo repl
The REPL evaluates Mojo statements interactively.
Essentials
- Useful for trying a type or a short function.
- Definitions persist until you quit.
- It is not a full project environment. Imports follow the same rules as a file.
- Quit with the usual EOF or exit command.
Example
$ mojo repl
Keep in mind
Move anything you want to keep into a file. REPL history is not a source of truth.