Skip to main content

shift

Function shift 

Source
pub fn shift(expr: &Expr, amount: i32, cutoff: u32) -> Expr
Expand description

Shift all free de Bruijn indices in expr by amount.

Indices ≥ cutoff are shifted; indices < cutoff are bound and left unchanged. Used when inserting an expression under new binders.