R/MRatCalcpowered by RiXOpen calculator

RiX walkthrough · 5c

Scope and imports

Closures, outer names, and block headers.

Orientation

RiX resolves names lexically. Inside a nested callable, @name accesses an outer binding, while block import headers make copying and aliasing explicit.

Read this chapter with RatCalc open. Predict the result before running an example, then change a single part and run it again. That small loop of prediction, execution, and inspection is the fastest way to make RiX syntax feel like a language rather than a table of symbols.

A worked example

Runnable RiX

The final line is the displayed value; the earlier lines set up the experiment. Keep the setup visible so you can tell whether a name, a cell, or a collection is being reused when the expression changes.

Read the result

Closures retain the scopes they need; updates should state whether they target the local or outer cell.

Try a second value of your own. When an advanced feature depends on files, JavaScript, or extension registration, RatCalc explains the concept but does not grant browser permissions implicitly. Use the detail pages and the help panel to connect this experiment to the broader language rules.

Keep going

Return to the overview when you need context, or continue to the next sibling lesson for a focused variation. Collection chapters also end with method help that includes signatures and examples.