Om
substitute

Applies a Lexicon to an Expression resulting in recursive Operator replacement, without using definitions from the enclosing scope.

Input
{lexicon} {expression}
Output
{lexicon} {evaluation}
Examples
substitute {A{1}} {A}
{A{1}}{1}
substitute {A{1}} {do{A}}
{A{1}}{do{A}}
Implementation
Om::Language::Operation::SubstituteOperation

Looking up an Operator in the Lexicon has the following possible outcomes: