UNPKG

@holgerengels/compute-engine

Version:

Symbolic computing and numeric evaluations for JavaScript and Node.js

13 lines (12 loc) 577 B
/* 0.26.0-alpha2 */ import type { BoxedSubstitution, PatternMatchOptions, BoxedExpression } from './public'; /** * The function attempts to match a subject expression to a * [pattern](/compute-engine/guides/patterns-and-rules/). * * If the match is successful, it returns a `Substitution` indicating how to * transform the pattern to become the subject. * * If the expression does not match the pattern, it returns `null`. * */ export declare function match(subject: BoxedExpression, pattern: BoxedExpression, options?: PatternMatchOptions): BoxedSubstitution | null;