This function is used to determine if an object is of Variable class. It is used internally by unify().
isVariable() is defined in env and can be accessed like that:
isVariable()
import {isVariable} from 'deep6/env.js';
The current implementation:
const isVariable = x => x instanceof Variable;
Example of use:
import {isVariable, variable} from 'deep6/env.js'; const x = variable(); isVariable(x); // true isVariable(1); // false
There was an error while loading. Please reload this page.
🔍 Search the wiki
Core functions
Environments and variables
Unification
Traverse
Unifiers
Utilities