git @ Cat's Eye Technologies Lariat / 8b1709b
Remove bogon that I would not have caught had I not proofread it. Chris Pressey 3 years ago
1 changed file(s) with 4 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
235235 --
236236 -- Returns [bool, term] where bool indicates "has rewritten"
237237 -- UNTESTED
238 --`var`, `app`, and `abs` construct terms, while `resolve` and `destruct`
239 take them apart. Constructing terms is the easy part; it's taking them
240 apart properly that's hard, and that's what `freevars` is there to help
241 support. For more on this, see the [Discussion](#discussion) section
242 below.
243
238 --
239 let reduce = fun(t) ->
240 if is_beta_reducible(t) then
241 [true, beta(t)]
244242 else
245243 destruct(t,
246244 fun(n) -> [false, var(n)],