Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReplacePD ¶
func ReplacePD( expr expreduceapi.Ex, es expreduceapi.EvalStateInterface, pm *PDManager, ) expreduceapi.Ex
ReplacePD takes an expression and replaces any defined symbols in the PDManager with the defined values. It is a form of subsitution common in function evaluation and replacement.
Types ¶
type MatchIter ¶
func NewMatchIter ¶
func NewMatchIter( a expreduceapi.Ex, b expreduceapi.Ex, pm *PDManager, es expreduceapi.EvalStateInterface, ) (MatchIter, bool)
type PDManager ¶
type PDManager struct {
// contains filtered or unexported fields
}
func IsMatchQ ¶
func IsMatchQ( a expreduceapi.Ex, b expreduceapi.Ex, pm *PDManager, es expreduceapi.EvalStateInterface, ) (bool, *PDManager)
IsMatchQ returns if an Ex `a` matches a pattern Ex `b`. If the expression matches the pattern and if the pattern has any named patterns, those matching values will be added to `pm`.
func (*PDManager) Expression ¶
func (pm *PDManager) Expression() expreduceapi.Ex
Click to show internal directories.
Click to hide internal directories.