Sammal v0.1.0 Sammal.Env View Source

Sammal evaluation environment.

Link to this section Summary

Functions

Assign variable into given environment

Look up variable first from local scope, then from parent scopes

Return true if given env is the top-level (or global) scope

Link to this section Functions

Assign variable into given environment.

Look up variable first from local scope, then from parent scopes.

Return true if given env is the top-level (or global) scope.

Some operations (e.g. define) are only valid in the top-level scope.