Skip to main content

deep_force

Function deep_force 

Source
pub fn deep_force(val: Value, heap: &mut dyn Heap) -> Result<Value, EvalError>
Expand description

Iteratively force a value — forces all thunks inside constructors, producing a fully-evaluated tree with no ThunkRef values. Uses an explicit work stack instead of recursion to handle deep structures (e.g. 1000-element lists) without overflowing the Rust stack.