-
-
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 onUnifier
.
-
-
Variable
— a class to create variable objects that can be used withEnv
.-
isVariable(x)
— returns a truthy value for objects based onVariable
. -
variable([name])
— creates a variable object.
-
-
any
(or_
) — special object that matches anything.