pub fn run_with_fuel(source: &str, fuel: Fuel) -> Io<Error, Value>
Lex, parse, and evaluate source with a caller-supplied fuel budget.
source
See Error.
Error
use lambda_throw_cat::eval::Fuel; use lambda_throw_cat::run_with_fuel; let value = run_with_fuel(r"try throw (\x. x) catch e. e", Fuel::new(100)).run()?; assert_eq!(format!("{value}"), "\\x. x");