Skip to main content

Import

Fig allows you to import modules or files using the import statement. This enables you to reuse code from other files or standard libraries. For example:

import std;
import "./utils.fig";

The import statement can be used to import modules from the standard library (std) or local files by specifying the file path.