-
-
Notifications
You must be signed in to change notification settings - Fork 0
env
Eugene Lazutkin edited this page Dec 28, 2021
·
3 revisions
This module defines the environment and variable-related objects. It is available like that:
import {any} from 'deep6/env.js';
The following objects are defined:
- Env — a class to create an environment object.
-
Unifier — an interface for custom unifiers.
-
isUnifier(x) — returns a truthy value for objects based on
Unifier
.
-
isUnifier(x) — returns a truthy value for objects based on
-
Variable — a class to create variable objects that can be used with
Env
.-
isVariable(x) — returns a truthy value for objects based on
Variable
. - variable([name]) — creates a variable object.
-
isVariable(x) — returns a truthy value for objects based on
- any (or _) — special object that matches anything.