Skip to content

Import Statements

Import statements are used to import other modules into current module. The top-most lexical scope of the module is mirrored.

Syntax
import "filename" as variable;
Example
import "utils.fbs" as utils;

# prints "Hello World!"
print(utils.helloWorld);

# prints "Hello World!"
utils.displayHelloWorld();