Skip to main content

beta_step

Function beta_step 

Source
pub fn beta_step(expr: &Expr) -> Option<Expr>
Expand description

Perform one step of beta reduction.

If the expression is an application of a lambda to an argument, substitute the argument for the bound variable in the lambda body.